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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 4 09:14:27 UTC 2019


    Date: Monday, November 4, 2019 @ 09:14:26
  Author: foutrelis
Revision: 523850

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 523849, python-pytest-twisted/trunk/PKGBUILD)

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

Copied: python-pytest-twisted/repos/community-staging-any/PKGBUILD (from rev 523849, python-pytest-twisted/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:14:26 UTC (rev 523850)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-twisted
+pkgver=1.12
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-twisted/archive/v$pkgver.tar.gz")
+sha512sums=('3fb5bdea9632ebd830637be8bef15432859e4689e41d2f87258dc5404734d98b76d26de494e80464f4321db6016836851daff5ff4eaf083fa7159cc8381e35bf')
+
+build() {
+  cd "$srcdir"/pytest-twisted-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/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