mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-scrypt
|
|
pkgver=0.8.27
|
|
pkgrel=0
|
|
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 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() {
|
|
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 unittest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/scrypt-*.whl
|
|
|
|
# do not install the tests module
|
|
rm -r "$pkgdir"/usr/lib/python*/site-packages/scrypt/tests
|
|
}
|
|
|
|
sha512sums="
|
|
e20bde0e00d9f82872fa957814765f2733feade8cada6a8c02543362bc9abbb2bc2bb203e14cec8793cc0cc374f233bc0aa59c8d5ec672aea13b9e3f0226de71 scrypt-0.8.27.tar.gz
|
|
"
|