1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-pytest-timeout
6 pkgdesc='py.test plugin to abort hanging tests'
9 url='https://github.com/pytest-dev/pytest-timeout'
10 depends=('python-pytest')
11 makedepends=('python-setuptools' 'python-pytest')
12 checkdepends=('python-pexpect' 'python-pytest-cov')
13 source=("https://github.com/pytest-dev/pytest-timeout/archive/$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('4897c111a0b0ae1287cbc3d9d641fd0908a6b47d505159378391d9d8da3912411adf86b236c22a3f7501c3b3cf84c279711ac8bab19b3e3b83ae67f069331aab')
17 cd pytest-timeout-$pkgver
22 # Hack entry points by installing it
24 cd pytest-timeout-$pkgver
25 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
26 python setup.py install --root="$PWD/tmp_install" --optimize=1
27 PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" py.test
31 cd pytest-timeout-$pkgver
32 python setup.py install --root="$pkgdir"/ --optimize=1
33 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
36 # vim:set ts=2 sw=2 et: