# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-bcrypt _pkgname=bcrypt pkgver=4.0.1 pkgrel=2 pkgdesc="Modern password hashing for your software and your servers" url="https://github.com/pyca/bcrypt" arch="all" license="Apache-2.0" depends="py3-cffi" makedepends=" libffi-dev py3-cparser py3-gpep517 py3-setuptools py3-setuptools-rust py3-wheel python3-dev " checkdepends="py3-pytest" options="net" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/pyca/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 -m installer .dist/bcrypt-*.whl test-env/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/bcrypt-*.whl } sha512sums=" eb7b1d67a2d60e82e2d2e4dcb12d7808be910f9b7aefab714a22dedbffc3722182875fdcf3c8c650c0bb7c1122e9e8bead92f18bc660043b017a14957467e2a9 py3-bcrypt-4.0.1.tar.gz "