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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 08:12:59 UTC 2019


    Date: Monday, November 4, 2019 @ 08:12:59
  Author: felixonmars
Revision: 523627

archrelease: copy trunk to community-staging-any

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

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

Copied: python-periphery/repos/community-staging-any/PKGBUILD (from rev 523625, python-periphery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 08:12:59 UTC (rev 523627)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-periphery
+pkgver=1.1.2
+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=('9c90a7a9613755fbfb694b3af13337b8287a50b0ac404290a712a00631486f3a9b8b1a683abefe5d0e31bd425eb86a6cd943ed5731b1cf9ff157f66d45d963dd')
+
+build() {
+  cd python-periphery-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-periphery-$pkgver
+  python setup.py pytest || warning "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