ayaports/user/py3-webauthn/APKBUILD

32 lines
1,017 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=webauthn
pkgname="py3-$_pyname"
pkgver=1.8.0
pkgrel=0
arch="!armv7 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() {
python3 setup.py build
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
70a6038bfa04583aebe1ea306d28de2b37ff3c0f0bbfce39749d2312ad0450257215d95fd388b99d84bdd7954f0c371ec90b3d2a951861c9ff6d1a0f3ef4df7b py3-webauthn-1.8.0.tar.gz
"