diff --git a/community/py3-pyfakefs/APKBUILD b/community/py3-pyfakefs/APKBUILD index 4828f6b470b..78615f8780e 100644 --- a/community/py3-pyfakefs/APKBUILD +++ b/community/py3-pyfakefs/APKBUILD @@ -1,31 +1,40 @@ # Maintainer: Natanael Copa pkgname=py3-pyfakefs _pkgname=${pkgname#py3-} -pkgver=5.0.0 -pkgrel=1 +pkgver=5.2.2 +pkgrel=0 pkgdesc="fake file system that mocks the Python file system modules" -options="!check" # flaky tests url="https://github.com/jmcgeheeiv/pyfakefs/" arch="noarch" license="Apache-2.0" depends="python3" -makedepends="py3-setuptools" +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends="py3-pytest-xdist" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 setup.py test + python3 -m venv --clear --without-pip --system-site-packages testenv + testenv/bin/python3 -m installer dist/*.whl + testenv/bin/python3 -m pytest -n auto } package() { - python3 setup.py install --skip-build --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + dist/*.whl } sha512sums=" -807042f7fcffb72590cada04634ec4a1c9bdc901f56012907cef67df2c04e847d23c2f4b6925240664e03d9640d9ebe3f2137efd0d28190de53386bb9a15cca2 pyfakefs-5.0.0.tar.gz +08e7f91ae618ed29481a1df7420d26cfe7630ea51d5653ff887d304b6841b2301aa98d13ff1312791cd658400bbdcaec54035dd2e95e4504509eb74188b5c2d3 pyfakefs-5.2.2.tar.gz "