32 lines
1,005 B
Text
32 lines
1,005 B
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
_pyname=django-otp
|
|
pkgname="py3-$_pyname"
|
|
pkgver=1.1.6
|
|
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() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
tox -e python3 || true
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir/" --optimize=1
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
sha512sums="
|
|
44ac1bb13d63e78d4e34ec9a0d6a1b4b5e79ed60f72920662436cb3b0bc307eb0476a8a9865e00e014afa6c3259380b0264905211baed97658b88780ec72a55a py3-django-otp-1.1.6.tar.gz
|
|
"
|