diff --git a/testing/py3-tls_parser/APKBUILD b/testing/py3-tls_parser/APKBUILD index 964b6e68d83..cb9fc23fd20 100644 --- a/testing/py3-tls_parser/APKBUILD +++ b/testing/py3-tls_parser/APKBUILD @@ -9,24 +9,24 @@ url="https://pypi.org/project/tls-parser/" arch="noarch" license="MIT" depends="python3" -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +options="!check" # no tests provided replaces=py-tls_parser # Backwards compatibility provides=py-tls_parser=$pkgver-r$pkgrel # Backwards compatibility build() { - python3 setup.py build -} - -check() { - python3 setup.py check + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="