mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-18 12:13:42 +02:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-bcrypt
|
|
_pkgname=bcrypt
|
|
pkgver=4.1.3
|
|
pkgrel=0
|
|
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 .testenv
|
|
.testenv/bin/python3 -m installer .dist/bcrypt-*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/bcrypt-*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
59a5aafc729a6e7ac61121469bbca73809d87cafc1b16dcb0701c33fccc6298eff1071680c364042c46f91d701830a414e6ecf0bff4bee9500e4ce146dcad974 py3-bcrypt-4.1.3.tar.gz
|
|
"
|