Date: Wednesday, April 5, 2023 @ 17:34:11
  Author: felixonmars
Revision: 1437821

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 1437820, python-pytest-asyncio/trunk/PKGBUILD)

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

Copied: python-pytest-asyncio/repos/community-staging-any/PKGBUILD (from rev 
1437820, python-pytest-asyncio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 17:34:11 UTC (rev 1437821)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-asyncio
+pkgver=0.21.0
+_commit=75dcceafcea94b8c286b8cba1b00ddec2593261f
+pkgrel=2
+pkgdesc="Pytest support for asyncio."
+arch=('any')
+license=('Apache')
+url="https://github.com/pytest-dev/pytest-asyncio/";
+depends=('python-pytest')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+checkdepends=('python-flaky' 'python-hypothesis' 'python-pytest-trio')
+source=("git+https://github.com/pytest-dev/pytest-asyncio.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd pytest-asyncio
+  python -m build -wn
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-asyncio
+  python -m installer --destdir=tmp_install dist/*.whl
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH:$PWD/tests" pytest
+}
+
+package() {
+  cd pytest-asyncio
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to