# Contributor: Philipp Glaum # Maintainer: Philipp Glaum pkgname=py3-pytest-rerunfailures _pkgname=${pkgname#py3-} pkgver=10.2 pkgrel=2 pkgdesc="Pytest plugin to re-run tests to eliminate flaky failures" url="https://pypi.org/project/pytest-rerunfailures/" arch="noarch" license="MPL-2.0" depends="python3 py3-pytest" makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel" checkdepends="py3-mock" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 -m installer dist/*.whl testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" 8830610276e2cc172ee372ae4d8376bc6329138751ea2737a4def6af32d05c112c872a7a180ff554018058c05ed0d109927dbac61f748586257e40b0243f03c8 pytest-rerunfailures-10.2.tar.gz "