ayaports/user/py3-webauthn/APKBUILD

33 lines
1,008 B
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=webauthn
pkgname="py3-$_pyname"
pkgver=1.6.0
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/$_pyname"
license="BSD-3-CLAUSE"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python setup.py build
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
dd20c79530f2dc619cf376afb43e8be3d5805f4a62ee651284d856665b6ba2f45b9a818695cee4f2abd23cb322160bb3a44f899cc9f4a66c8265bf711e6abcd3 py3-webauthn-1.6.0.tar.gz
"