# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-pytest-xdist pkgver=3.3.1 pkgrel=0 pkgdesc="pytest xdist plugin for distributed testing and loop-on-failing modes" url="https://github.com/pytest-dev/pytest-xdist" arch="noarch" license="MIT" depends="py3-execnet py3-pytest" checkdepends="py3-filelock py3-py py3-pexpect py3-psutil" makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest-xdist-$pkgver.tar.gz" builddir="$srcdir/pytest-xdist-$pkgver" replaces="pytest-xdist" # Backwards compatibility provides="pytest-xdist=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 -m installer .dist/pytest_xdist*.whl test-env/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/pytest_xdist*.whl } sha512sums=" f439ff1acf65a8df025fec847602ebdc5355b2099501845f8cde3c5287299a9c3102fa6dd6fc82a30bc016893556a24b0b5409323f5db4015e77c711a7b5c59f pytest-xdist-3.3.1.tar.gz "