upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-pytest-timeout / trunk / PKGBUILD
blob7220d1d4eaa9a3eb4bc5b422a487ce71b12e9f1f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-pytest-timeout
4 pkgver=2.1.0
5 pkgrel=2
6 pkgdesc='py.test plugin to abort hanging tests'
7 arch=('any')
8 license=('MIT')
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')
16 build() {
17   cd pytest-timeout-$pkgver
18   python setup.py build
21 check() {
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
30 package() {
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: