ayaports/testing/py3-django-allauth/APKBUILD

50 lines
1.1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-django-allauth
_pyname="django-allauth"
pkgver=0.58.2
pkgrel=0
arch="noarch"
pkgdesc="Integrated set of Django applications addressing SSO"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="
py3-django
py3-openid
py3-requests
py3-requests-oauthlib
py3-jwt
py3-cryptography
"
makedepends="
py3-setuptools
py3-build
py3-installer
py3-wheel
"
checkdepends="
py3-qrcode
py3-pytest
py3-pytest-django
py3-onelogin
"
source="$pkgname-$pkgver.tar.gz::https://github.com/pennersr/$_pyname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # Failing test unit
subpackages="$pkgname-pyc"
build() {
python3 -m build --wheel --skip-dependency-check --no-isolation
}
check() {
python3 manage.py test allauth
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
33793619f5d1fd424d215ed16b67a8215a2a5875e54ece7163dc5250e6b03fd3c6e671669fc16b3d255b0844d235fa57409cb280410cbbc87231c1f2daf112ad py3-django-allauth-0.58.2.tar.gz
"