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

Felix Yan felixonmars at archlinux.org
Tue Jul 4 15:58:53 UTC 2017


    Date: Tuesday, July 4, 2017 @ 15:58:52
  Author: felixonmars
Revision: 242321

archrelease: copy trunk to community-any

Added:
  python-pytest-asyncio/repos/community-any/
  python-pytest-asyncio/repos/community-any/PKGBUILD
    (from rev 242320, python-pytest-asyncio/trunk/PKGBUILD)

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

Copied: python-pytest-asyncio/repos/community-any/PKGBUILD (from rev 242320, python-pytest-asyncio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-07-04 15:58:52 UTC (rev 242321)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-asyncio
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="Pytest support for asyncio."
+arch=('any')
+license=('Apache')
+url="https://github.com/pytest-dev/pytest-asyncio/"
+depends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver.tar.gz")
+sha512sums=('d46d93398c69eb4164ca485c32de0166a9c7001c604999e9b6f2b29e45e1d5939a6e101203057c26e3e811f22f9a05b76e2038f258421001bc436e849acb9137')
+
+build() {
+  cd pytest-asyncio-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-asyncio-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH:$PWD/tests" py.test
+}
+
+package() {
+  cd pytest-asyncio-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list