diff options
Diffstat (limited to 'community/py3-scrypt/APKBUILD')
-rw-r--r-- | community/py3-scrypt/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/community/py3-scrypt/APKBUILD b/community/py3-scrypt/APKBUILD index d3d84f52a47..9df29628cfe 100644 --- a/community/py3-scrypt/APKBUILD +++ b/community/py3-scrypt/APKBUILD @@ -2,18 +2,21 @@ # Maintainer: Michał Polański <michal@polanski.me> pkgname=py3-scrypt pkgver=0.8.20 -pkgrel=0 +pkgrel=5 pkgdesc="Python bindings for the scrypt key derivation function" url="https://pypi.org/project/scrypt/" license="BSD-2-Clause" arch="all" depends="python3" -makedepends="python3-dev openssl1.1-compat-dev py3-setuptools" +makedepends="python3-dev openssl-dev py3-gpep517 py3-installer py3-setuptools py3-wheel" +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-$pkgver.tar.gz" builddir="$srcdir/scrypt-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { @@ -21,7 +24,8 @@ check() { } package() { - python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/scrypt-*.whl # do not install the tests module rm -r "$pkgdir"/usr/lib/python*/site-packages/scrypt/tests |