Date: Saturday, July 14, 2018 @ 03:25:47
  Author: felixonmars
Revision: 358864

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-asyncio/repos/community-staging-any/PKGBUILD (from rev 
358863, python-pytest-asyncio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2018-07-14 03:25:47 UTC (rev 358864)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-asyncio
+pkgver=0.8.0.20180710
+_commit=d2dc63597d6597805c88f11a2e7a0f2f642ce7d6
+pkgrel=1
+pkgdesc="Pytest support for asyncio."
+arch=('any')
+license=('Apache')
+url="https://github.com/pytest-dev/pytest-asyncio/";
+depends=('python-pytest')
+checkdepends=('python-pytest-cov' 'python-async_generator')
+source=("$pkgname-$_commit.tar.gz::https://github.com/pytest-dev/pytest-asyncio/archive/$_commit.tar.gz";)
+sha512sums=('cfc1f9e30fde936efe6b963d26817a803a82587e5769ca35df10203be058f3df87073d44b9e7e10977cf51beb91be72e855ce85a5285b8747bf3e4459487a33f')
+
+prepare() {
+  mv pytest-asyncio-{$_commit,$pkgver}
+}
+
+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
+}

Reply via email to