aports/testing/py3-pytest-rerunfailures/APKBUILD

38 lines
1.1 KiB
Plaintext

# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-pytest-rerunfailures
_pkgname=${pkgname#py3-}
pkgver=11.1.2
pkgrel=0
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"
subpackages="$pkgname-pyc"
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="
309a0d180a996ddb5d6eb0833e6abd107887bc17ca3003a2b02bbaf5a4cbd63012618ee293a2a80623ca327b46ce7a5cd53bb341de75e5670a62b84e7ce5f0bc pytest-rerunfailures-11.1.2.tar.gz
"