1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-argon2-cffi/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

46 lines
1.1 KiB
Text

# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-argon2-cffi
pkgver=21.3.0
pkgrel=0
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"
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
"