mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
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.
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-bcrypt
|
|
_pkgname=bcrypt
|
|
pkgver=4.0.1
|
|
pkgrel=1
|
|
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"
|
|
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
|
|
"
|