# Maintainer: pkgname=py3-argon2-cffi-bindings pkgver=21.2.0 pkgrel=2 pkgdesc="Low-level Python CFFI Bindings for Argon2" url="https://github.com/hynek/argon2-cffi-bindings" arch="all" license="MIT" depends="python3 py3-cffi" makedepends=" argon2-dev python3-dev py3-setuptools py3-setuptools_scm py3-gpep517 py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/argon2-cffi-bindings/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/argon2-cffi-bindings-$pkgver" build() { export ARGON2_CFFI_USE_SYSTEM=1 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver 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=" 3e2852e7b72ca1f3c196be0c9861b18c79b030aadd8fdfba50a504136b6229e1f9cbc6117234977c6e12d9a1bd6c95ac3d30aa9d4127a5b26b3d19d5934d9509 py3-argon2-cffi-bindings-21.2.0.tar.gz "