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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:56:45 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:56:44
  Author: felixonmars
Revision: 1059577

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-timeout/repos/community-staging-any/PKGBUILD (from rev 1059571, python-pytest-timeout/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:56:44 UTC (rev 1059577)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-timeout
+pkgver=1.4.2
+pkgrel=6
+pkgdesc='py.test plugin to abort hanging tests'
+arch=('any')
+license=('MIT')
+url='https://bitbucket.org/pytest-dev/pytest-timeout'
+depends=('python-pytest')
+makedepends=('python-setuptools' 'python-pytest')
+checkdepends=('python-pexpect' 'python-pytest-cov')
+source=("https://github.com/pytest-dev/pytest-timeout/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('062ce6c832a7139874ad8f165818c2a7d9cef4a2fe2c53a6c37d4f0a060cf920204f1d2d255e4d31953c0da268e708c1d305f362cd6d0ea103bc101ffb51b098')
+
+build() {
+  cd "$srcdir"/pytest-timeout-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/pytest-timeout-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" py.test
+}
+
+package() {
+  cd pytest-timeout-$pkgver
+  python setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list