[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon May 31 17:24:25 UTC 2021


    Date: Monday, May 31, 2021 @ 17:24:25
  Author: felixonmars
Revision: 952842

addpkg: python-alt-pytest-asyncio 0.5.4-1

Added:
  python-alt-pytest-asyncio/
  python-alt-pytest-asyncio/repos/
  python-alt-pytest-asyncio/trunk/
  python-alt-pytest-asyncio/trunk/PKGBUILD

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

Added: python-alt-pytest-asyncio/trunk/PKGBUILD
===================================================================
--- python-alt-pytest-asyncio/trunk/PKGBUILD	                        (rev 0)
+++ python-alt-pytest-asyncio/trunk/PKGBUILD	2021-05-31 17:24:25 UTC (rev 952842)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-alt-pytest-asyncio
+pkgver=0.5.4
+pkgrel=1
+pkgdesc='Alternative pytest plugin to pytest-asyncio'
+arch=('any')
+license=('MIT')
+url='https://github.com/delfick/alt-pytest-asyncio'
+depends=('python-pytest')
+makedepends=('python-setuptools')
+checkdepends=('python-noseofyeti' 'python-nest-asyncio')
+source=("https://github.com/delfick/alt-pytest-asyncio/archive/release-$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('2078e053e93b926fa847e8cb7db4c23a9f47b2135f7ce5ff5883602ba8e1689f01b486ce566776c07aa680ef5f38a3d746a34f338b8e11bf18ceec78e942431d')
+
+build() {
+  cd alt-pytest-asyncio-release-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd alt-pytest-asyncio-release-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  # https://github.com/delfick/alt-pytest-asyncio/issues/5
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" pytest \
+    --deselect tests/test_examples.py::test_shows_correctly_for_failing_fixtures[example_timeouts] \
+    --deselect tests/test_examples.py::test_shows_correctly_for_failing_fixtures[example_fixture_failures]
+}
+
+package() {
+  cd alt-pytest-asyncio-release-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list