mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-06 06:12:12 +02:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
pkgname=py3-spake2
|
|
_pkgname=python-spake2
|
|
pkgver=0.8
|
|
pkgrel=0
|
|
pkgdesc="Pure-python implementation of the SPAKE2 Password-Authenticated Key Exchange algorithm"
|
|
url="https://github.com/warner/python-spake2"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-hkdf"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/warner/python-spake2/archive/refs/tags/v$pkgver.tar.gz
|
|
10-configparser.patch"
|
|
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/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
908c377c831f4a11551973ca917b113d51a66c533d35fd19b2692fdb7e575ed2a5045d9b632bc55c37b68ad092f01dff5da191e9dfbfb5599b72844788438d68 py3-spake2-0.8.tar.gz
|
|
4c9b9269436e5e58e5b8a41e131059a0cd4a90b93a1aecaae09d858e8d3a4f23d4825efc535bceae2b3a92253f63c6ca2e6e8c6fb9afc6ffe43e3c45b9443856 10-configparser.patch
|
|
"
|