~dricottone/huttese-apk

ref: d56be4a168a343bd939aaf290e2cc852e13f9576 huttese-apk/sr.ht/py3-zxcvbn/APKBUILD -rw-r--r-- 864 bytes
d56be4a1 — Drew DeVault Handle Alpine release in pkgkit 5 years ago
                                                                                
9afe4ba0 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"