mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 17:34:34 +02:00
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-webauthn
|
|
_pyname=webauthn
|
|
pkgver=2.5.2
|
|
pkgrel=0
|
|
arch="noarch"
|
|
pkgdesc="A Python3 implementation of the WebAuthn API focused on making it easy to leverage the power of WebAuthn."
|
|
url="https://pypi.python.org/project/webauthn"
|
|
license="BSD-3-Clause"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-cbor2
|
|
py3-openssl
|
|
py3-asn1crypto
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/duo-labs/py_webauthn/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir"/py_webauthn-$pkgver
|
|
subpackages="$pkgname-pyc"
|
|
|
|
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 -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
sha512sums="
|
|
e4151e54ab71f4b35fae30cec05bd987ec8a3c6c6adbc97219e6252b8b541a71eb88b4531cdac0863624ecd99c9889e7c7a9429ce75090c42c11322f5f95b0cf py3-webauthn-2.5.2.tar.gz
|
|
"
|