[arch-commits] Commit in python-periphery/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:14:30 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:14:30
  Author: foutrelis
Revision: 752380

archrelease: copy trunk to community-staging-any

Added:
  python-periphery/repos/community-staging-any/
  python-periphery/repos/community-staging-any/PKGBUILD
    (from rev 752378, python-periphery/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-periphery/repos/community-staging-any/PKGBUILD (from rev 752378, python-periphery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:14:30 UTC (rev 752380)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-periphery
+pkgver=2.1.0
+pkgrel=2
+pkgdesc="A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux"
+url="https://github.com/vsergeev/python-periphery"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/vsergeev/python-periphery/archive/v$pkgver.tar.gz")
+sha512sums=('50ac373017ea5ce8e222b17cddbe38044ef0ebcdb050ed24a05bc5304bf834ac6628e81372267dfe58e084f596f8173caab7cc083b6e3691f4d392aa8570d621')
+
+build() {
+  cd python-periphery-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-periphery-$pkgver
+  python setup.py pytest || echo "Tests failed"
+}
+
+package() {
+  cd python-periphery-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list