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

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon Dec 6 23:14:04 UTC 2021


    Date: Monday, December 6, 2021 @ 23:14:04
  Author: foutrelis
Revision: 1065417

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-twisted/repos/community-staging-any/PKGBUILD (from rev 1065416, python-pytest-twisted/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-06 23:14:04 UTC (rev 1065417)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-twisted
+pkgver=1.13.4
+pkgrel=2
+pkgdesc='A twisted plugin for py.test'
+arch=('any')
+license=('BSD')
+url='https://github.com/pytest-dev/pytest-twisted'
+depends=('python-pytest' 'python-greenlet' 'python-decorator' 'python-twisted')
+makedepends=('python-setuptools')
+source=("https://github.com/pytest-dev/pytest-twisted/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('99899ad73f87582023a0e639986a287b4571638be4f1ae134078a15a4d4bebd24153f813c993382603edc14306c12931e2daf517d7998e48d3d19b8469c0b7aa')
+
+build() {
+  cd pytest-twisted-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-twisted-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  PYTHONPATH="$PWD/tmp_install/${site_packages}:$PYTHONPATH" py.test
+}
+
+package() {
+  cd pytest-twisted-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list