# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=py3-argon2-cffi pkgver=21.3.0 pkgrel=1 pkgdesc="The secure Argon2 password hashing algorithm" url="https://argon2-cffi.readthedocs.io/en/stable/" arch="all" license="MIT" depends=" python3 py3-argon2-cffi-bindings py3-cffi " makedepends=" argon2-dev libffi-dev py3-flit-core py3-gpep517 python3-dev " checkdepends="py3-pytest py3-hypothesis" subpackages="$pkgname-pyc" source="https://pypi.io/packages/source/a/argon2-cffi/argon2-cffi-$pkgver.tar.gz" builddir="$srcdir/argon2-cffi-$pkgver" build() { export ARGON2_CFFI_USE_SYSTEM=1 gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 6cb2a075f3bb7040ee7f552d082bfa2f3df0854649d9c84fdfdb42bb4bee2133b8a35a20be2b3c887931efda12fbbb00815d8d88170b7e20b3ca19c86f97057e argon2-cffi-21.3.0.tar.gz "