archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pytest-xdist / trunk / PKGBUILD
blob1644b2f768d876e3787f55cf3ec628eedd77d5cd
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-pytest-xdist
4 pkgver=3.3.0
5 _commit=f5b4a5d6edea6a9eb016730f5de0aae8cbc9930e
6 pkgrel=1
7 pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes'
8 arch=('any')
9 license=('MIT')
10 url='https://github.com/pytest-dev/pytest-xdist'
11 depends=('python-execnet' 'python-pytest')
12 makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
13 checkdepends=('python-filelock' 'python-psutil')
14 source=("git+https://github.com/pytest-dev/pytest-xdist.git#commit=$_commit")
15 sha512sums=('SKIP')
17 build() {
18   cd pytest-xdist
19   python -m build -nw
22 check() {
23   # Hack entry points by installing it
25   cd pytest-xdist
26   python -m installer -d "$PWD/tmp_install" dist/*.whl
27   local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
28   PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest
31 package() {
32   cd pytest-xdist
33   python -m installer -d "$pkgdir" dist/*.whl
34   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
37 # vim:set ts=2 sw=2 et: