45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=py3-django-otp
|
|
_pyname=django_otp
|
|
pkgver=1.3.0
|
|
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-build
|
|
py3-installer
|
|
py3-hatchling
|
|
"
|
|
checkdepends="
|
|
py3-freezegun
|
|
"
|
|
options="!check" # Can't find module for some reason
|
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-$pkgver
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
python3 -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() {
|
|
DJANGO_SETTINGS_MODULE="test_project.settings" \
|
|
PYTHONPATH="test" \
|
|
python3 -s -m django test django_otp
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
sha512sums="
|
|
ef63c5db096ce7d1b10d6b2a99ab6db46b779d4221f509452921fcbf338decbd5c799aec7476587a03b34288ef3f5ff1964dee72105b65f04a22cbd53d445fa4 py3-django-otp-1.3.0.tar.gz
|
|
"
|