mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
82 lines
2.7 KiB
Text
82 lines
2.7 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-django-allauth
|
|
_pyname="django-allauth"
|
|
pkgver=65.9.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
|
|
rollback-cf4507-feat-idp-ninja.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
|
|
# allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource - assert 404 == <HTTPStatus.OK: 200>
|
|
# allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource_forbidden - assert 404 == <HTTPStatus.UNAUTHORIZED: 401>
|
|
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/idp/oidc/contrib/ninja/tests/test_views.py::test_resource \
|
|
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource_forbidden
|
|
;;
|
|
*)
|
|
.testenv/bin/python3 -m pytest -v \
|
|
--ignore-glob=allauth/headless/contrib/ninja/tests/test_security.py \
|
|
--deselect allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login \
|
|
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource \
|
|
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource_forbidden
|
|
;;
|
|
esac
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer --destdir="$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
aaa555c8dbd5aa61f72375ae3b6e73edeb3b947ecd3dc5917dfb7e51c9e28a6424e3779f1f0c107f9571deb6df4ace340c9d564443db03a631e659f78899ff33 py3-django-allauth-65.9.0.tar.gz
|
|
5c0ac63e8db4daf0a4c4239446adf4c091492986f2a7e9a3e804790451e56a1e56e6c21720264a2e3f6579588e21fc91142679ffdfb70fd557cfecbc016564d1 rollback-c99acb-skip-certain-tests.patch
|
|
d5d288d16a18762eab9522ee47c69037a22a662d74bc043f9a98edbbb6b362bb4c600b8a6955ce837b5a3e1d23860c253b50ab7fbd1c2c9b688b7d066b0a3aaf rollback-cf4507-feat-idp-ninja.patch
|
|
"
|