~dricottone/huttese-apk

ref: 2b0623ee604d1ac8f5db9c95168da1c15d1cefb0 huttese-apk/sr.ht/py3-zxcvbn/APKBUILD -rw-r--r-- 864 bytes
2b0623ee — Ludovic Chabant Add mercurial evolve package, make it a dependency of hgsrht 5 years ago
                                                                                
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"