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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:03:22 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:03:22
  Author: foutrelis
Revision: 348834

archrelease: copy trunk to community-staging-any

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

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

Copied: python-async_generator/repos/community-staging-any/PKGBUILD (from rev 348833, python-async_generator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:03:22 UTC (rev 348834)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=async_generator
+pkgname=python-${_pkgname}
+pkgver=1.9
+pkgrel=2
+pkgdesc='Making it easy to write async iterators'
+url='https://github.com/python-trio/async_generator'
+arch=('any')
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/python-trio/async_generator/archive/v${pkgver}.tar.gz)
+sha256sums=('942d0de4ad4e3b66d7cce4cbed29f7307111aad98599d4ebf01b9f3ebfd10be0')
+sha512sums=('b68575be0edf6718298d79a4236d941b2821e0542d2f02378d4c70b7a8cbd558c75bcf1a29997d46c842cf37d9832d6f7e7234f0a894529dac3c6105e3dba2f1')
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  py.test
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list