# 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"