~dricottone/huttese-apk

9afe4ba0be9c655d6e32adfeb163fa65623257b3 — Drew DeVault 5 years ago 8e65c17
sr.ht/py3-zxcvbn: new APKBUILD
1 files changed, 31 insertions(+), 0 deletions(-)

A sr.ht/py3-zxcvbn/APKBUILD
A sr.ht/py3-zxcvbn/APKBUILD => sr.ht/py3-zxcvbn/APKBUILD +31 -0
@@ 0,0 1,31 @@
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-zxcvbn
_pyname=zxcvbn
pkgver=4.4.27
pkgrel=0
pkgdesc="Python implementation of Dropbox's realistic password strength estimator"
url="https://github.com/dwolfhub/zxcvbn-python"
arch="noarch"
license="MIT"
makedepends="python3-dev py-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/dwolfhub/zxcvbn-python/archive/v4.4.27.tar.gz"
builddir="$srcdir"/$_pyname-python-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	pytest-3
}

package() {
	mkdir -p "$pkgdir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="aad98e6f0115e3a24ed26a40f3adf0073fb09571b3eef9cd6194daa3d7b660e6c05ad4533ae2f6cd6081201f699aa73db2d26cfe922531c0e8b7e8116b0c8f3e  py3-zxcvbn-4.4.27.tar.gz"