# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-pytest-xdist pkgver=3.2.0 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" 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=" dd22c2e525681ddabc1df75e8eadcf0d3c52936cefafb7308771e37cfe9023cb4ecbbaf4e437668666f5319e379e7b6c5c7665912b59c5d10890c32da7546433 pytest-xdist-3.2.0.tar.gz "