ayaports/user/py3-django-otp/APKBUILD

33 lines
1,003 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=django-otp
pkgname="py3-$_pyname"
pkgver=1.1.4
pkgrel=0
arch="noarch"
pkgdesc="A pluggable framework for adding two-factor authentication to Django using one-time passwords."
url="https://pypi.python.org/project/$_pyname"
license="BSD-2-CLAUSE"
depends="py3-django py3-qrcode"
makedepends="py3-setuptools"
checkdepends="py3-tox"
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() {
tox -e python3 || true
}
package() {
python setup.py install --skip-build --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
24e10bbf7d8f64b0f69c8a2cfc4a818aade4579721fd1af8c792d9e8f83560b8f3bf03384472bfc759b9838a873b4936d1a721f4588f49c0418f55838c2597e7 py3-django-otp-1.1.4.tar.gz
"