# Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=py3-django-allauth _pyname="django-allauth" pkgver=65.8.0 pkgrel=0 arch="noarch" pkgdesc="Integrated set of Django applications addressing SSO" url="https://pypi.python.org/project/django-allauth" license="MIT" # missing opt depends: python3-openid depends=" py3-python3-saml py3-qrcode py3-django py3-openid py3-requests py3-requests-oauthlib py3-jwt py3-cryptography py3-fido2 " makedepends=" py3-setuptools py3-gpep517 py3-wheel " checkdepends=" py3-pytest py3-pytest-django py3-django-rest-framework py3-psycopg2 py3-yaml " source=" $pkgname-$pkgver.tar.gz::https://github.com/pennersr/$_pyname/archive/$pkgver.tar.gz rollback-c99acb-skip-certain-tests.patch " builddir="$srcdir"/$_pyname-$pkgver subpackages="$pkgname-pyc" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl # test_security.py: requires ninja module case "$CARCH" in loongarch64) .testenv/bin/python3 -m pytest -v \ --ignore="allauth/headless/contrib/ninja/tests/test_security.py" \ --deselect allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login \ --deselect allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login_with_extra_attributes ;; *) .testenv/bin/python3 -m pytest -v \ --ignore-glob=allauth/headless/contrib/ninja/tests/test_security.py ;; esac } package() { python3 -m installer --destdir="$pkgdir" .dist/*.whl } sha512sums=" 0c5cdf126fe9eda940058582c838cbe4de5d85d76bdb16399d0d5fc76b21df082ddc0aebc9f53cb59186e5434bb32b4978b18d7bd043f4fe61f49635fc0ed1aa py3-django-allauth-65.8.0.tar.gz 83773454d0582d3f29025bc63e09b0bc16c17c2bc50f3ad54e66d28519be73626f537a873fa50d5b56944852ca6089a3eb57fb2f5990abf5bdf9fbcc2ac68bfc rollback-c99acb-skip-certain-tests.patch "