summaryrefslogtreecommitdiff
path: root/dev-python/django-allauth
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/django-allauth')
-rw-r--r--dev-python/django-allauth/Manifest8
-rw-r--r--dev-python/django-allauth/django-allauth-65.13.1.ebuild74
-rw-r--r--dev-python/django-allauth/django-allauth-65.16.0.ebuild48
-rw-r--r--dev-python/django-allauth/django-allauth-65.16.1.ebuild48
-rw-r--r--dev-python/django-allauth/django-allauth-65.7.0.ebuild73
-rw-r--r--dev-python/django-allauth/files/fido2.patch53
-rw-r--r--dev-python/django-allauth/metadata.xml12
7 files changed, 213 insertions, 103 deletions
diff --git a/dev-python/django-allauth/Manifest b/dev-python/django-allauth/Manifest
index b5696fcecf51..77ef13d88511 100644
--- a/dev-python/django-allauth/Manifest
+++ b/dev-python/django-allauth/Manifest
@@ -1,2 +1,6 @@
-DIST django_allauth-65.16.0.tar.gz 2233580 BLAKE2B 0fb9262df8522a3804d19d7760c3f1396b438ad482d67a5a250d746091fe1836942449416cb2bc6de2c9b6eb6a1373d1d48185c263a3026f44778b46fecd5ee3 SHA512 d9be15d21cb34dfdf8391c1b68c1fa22d14b3d44cb1d114350073e7129a38eb27471ea7b4d2a1eb599440931ed00d0cdbc3f5b75200df2a3aaa9bb17ace095a8
-DIST django_allauth-65.16.1.tar.gz 2232835 BLAKE2B e9dfca295b33ce64f3f38dff90936ec99b269a1af73cbda10f472cf4e6e3923ed8e0e5c44d8b9a9180b9f5b9b9fc3c2a64890a42fbe473600a659f1a6986f24a SHA512 88ab481b84b3cf81d7f5bd02c0f2069c6762bea9588d27e80ac0d6463bd63005261117dd4a3174ace6f35a399731471a70f516bf879c49ccebfc2a5f0f13f919
+AUX fido2.patch 1581 BLAKE2B 201d7e29f5bc8177284d17ac833c090c3d881eb7e0b3a64e0ee3900b4b568435b52a767078973646bdd66434e184911881ce8c7de07d5840cb681ad40aa9aac8 SHA512 cd19c46068129d138a09ff14e8457ec39110ee30bdb0f2875d6b67a4443796f0269199f1f8ffe848ac119117860c47dce41dc9dfe3af41f08b6b19b0a461ed19
+DIST django-allauth-65.13.1.gh.tar.gz 1545572 BLAKE2B 8545f90b7490cb607b78f887f3eeeb4bb7d6471ff86798ad10a56095911fef8dcff983f70d530d43e94ac4d9e208a82d9212f69aea1d5b428e46f54336b6f3ac SHA512 7287a81e3a218b0add9aec36b67f7d5fa097caf2f1dc9c5091320962f13deaae012db59af4fcdcb0c67a7b0877737510016ceefdf51ec26b5536f34a49242d97
+DIST django-allauth-65.7.0.gh.tar.gz 1394096 BLAKE2B 0b6a0dbb8ea534f9ff27188a39a4d2a5bffd8897df1a3a69bd8c2ef9328f2fb04a8b8c288d99b0573be36e7e445609fdc6fb69e508be79ff97996b92ede5ac17 SHA512 7c1b4dadd72017b173b898e50c4c1d3365ef433facdd8b92281d158b594c51b63a406a41b0669c93daf22b65a9a7903946f179c1f56010051186aa54d338163e
+EBUILD django-allauth-65.13.1.ebuild 2302 BLAKE2B ed3f352f057041d48fc9a4f96c093725779166e7c92a90992a60cd226e8d9e2719e042dbb7b2f595434171766473f92bb8b76697d85b44c9098ac5a5e76c5d72 SHA512 c0ba01f783c49a34a51301688fb985a779c6f3c2045b0bc85f8ad1e6f34a43ca14a9c8e1bcf97618a7f6c0de890b3531fd5459917570ddbf67660161e046de4c
+EBUILD django-allauth-65.7.0.ebuild 2122 BLAKE2B b234c86a99572c2dc981e47220092b5791c417034782a9d72f7f9af886b99a59062e25192c97fc053c0eec867abdc33feef06b28c38dd73afe7d587c4d35efdc SHA512 dea413b59df692c9497b4c279bbdbb5a8dbac04b296e5489791c5e00efdd2361fe2a383f6e98f3b49decf5e26db67757528178cb92a96179659a85149a146173
+MISC metadata.xml 467 BLAKE2B e7467950c489e3497a838a7cc47cbc3172c64a5a26048131e912ab5149ca865a31798458163e915d9afc749969523c5d10156425a5ea1e323f25363d8a3764fc SHA512 b0c60fd75f3f07991750c87f3caa1e1d5cd53f15262377c0f4a33e89c9ff6ada1e18e8a115bf52b566f09b77e2bb2387509f61f06ba0aa81edd91bece9448cda
diff --git a/dev-python/django-allauth/django-allauth-65.13.1.ebuild b/dev-python/django-allauth/django-allauth-65.13.1.ebuild
new file mode 100644
index 000000000000..9d60a8bdb9f1
--- /dev/null
+++ b/dev-python/django-allauth/django-allauth-65.13.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Django 3rd party (social) account authentication"
+HOMEPAGE="
+ https://allauth.org/
+ https://github.com/pennersr/django-allauth/
+ https://pypi.org/project/django-allauth/
+"
+SRC_URI="https://github.com/pennersr/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/asgiref-3.8.1[${PYTHON_USEDEP}]
+ >=dev-python/django-4.2.16[${PYTHON_USEDEP}]
+ >=dev-python/pyjwt-2.0[${PYTHON_USEDEP}]
+ <dev-python/pyjwt-3[${PYTHON_USEDEP}]
+ >=dev-python/oauthlib-3.3.0[${PYTHON_USEDEP}]
+ <dev-python/oauthlib-4[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/requests-3[${PYTHON_USEDEP}]
+"
+# cryptography via pyjwt[crypto]
+RDEPEND+="
+ dev-python/cryptography[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/django-ninja-1.3.0[${PYTHON_USEDEP}]
+ <dev-python/django-ninja-2[${PYTHON_USEDEP}]
+ >=dev-python/djangorestframework-3.15.2[${PYTHON_USEDEP}]
+ <dev-python/djangorestframework-4[${PYTHON_USEDEP}]
+ >=dev-python/fido2-1.1.2[${PYTHON_USEDEP}]
+ <dev-python/fido2-3[${PYTHON_USEDEP}]
+ dev-python/psycopg[${PYTHON_USEDEP}]
+ >=dev-python/pytest-asyncio-0.23.8[${PYTHON_USEDEP}]
+ >=dev-python/pytest-django-4.5.2[${PYTHON_USEDEP}]
+ >=dev-python/python3-openid-3.0.8[${PYTHON_USEDEP}]
+ <dev-python/python3-openid-4[${PYTHON_USEDEP}]
+ >=dev-python/python3-saml-1.15.0[${PYTHON_USEDEP}]
+ <dev-python/python3-saml-2.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-6[${PYTHON_USEDEP}]
+ <dev-python/pyyaml-7[${PYTHON_USEDEP}]
+ >=dev-python/qrcode-7.0.0[${PYTHON_USEDEP}]
+ <dev-python/qrcode-9[${PYTHON_USEDEP}]
+ )
+"
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+DOCS=( README.rst AUTHORS ChangeLog.rst )
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+ dev-python/sphinx-rtd-theme
+
+pkg_postinst() {
+ optfeature "MFA (Multi-factor authentication)" dev-python/qrcode dev-python/fido2
+ optfeature "OpenID or Steam" dev-python/python3-openid
+ optfeature "SAML authentication" dev-python/python3-saml
+}
diff --git a/dev-python/django-allauth/django-allauth-65.16.0.ebuild b/dev-python/django-allauth/django-allauth-65.16.0.ebuild
deleted file mode 100644
index b92a770561a9..000000000000
--- a/dev-python/django-allauth/django-allauth-65.16.0.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 2024-2026 Liguros Authors
-# Distributed under the terms of the GNU General Public License v2
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-
-inherit distutils-r1 pypi optfeature
-
-DESCRIPTION="Django 3rd party (social) account authentication"
-HOMEPAGE="
- https://allauth.org/
- https://codeberg.org/allauth/django-allauth
- https://pypi.org/project/django-allauth/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=dev-python/django-3.2[${PYTHON_USEDEP}]
- >=dev-python/python3-openid-3.0.8[${PYTHON_USEDEP}]
- >=dev-python/pyjwt-1.7[${PYTHON_USEDEP}]
- >=dev-python/requests-oauthlib-0.3.0[${PYTHON_USEDEP}]
- >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
-"
-# cryptography via pyjwt[crypto]
-RDEPEND+="
- dev-python/cryptography[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/pillow-9.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-django-4.5.2[${PYTHON_USEDEP}]
- >=dev-python/qrcode-7.0.0[${PYTHON_USEDEP}]
- >=dev-python/python3-saml-1.15.0[${PYTHON_USEDEP}]
- <dev-python/python3-saml-2.0.0[${PYTHON_USEDEP}]
- )
-"
-
-DOCS=( README.rst AUTHORS ChangeLog.rst )
-
-distutils_enable_sphinx docs \
- dev-python/sphinx-rtd-theme
-
diff --git a/dev-python/django-allauth/django-allauth-65.16.1.ebuild b/dev-python/django-allauth/django-allauth-65.16.1.ebuild
deleted file mode 100644
index b92a770561a9..000000000000
--- a/dev-python/django-allauth/django-allauth-65.16.1.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 2024-2026 Liguros Authors
-# Distributed under the terms of the GNU General Public License v2
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
-
-inherit distutils-r1 pypi optfeature
-
-DESCRIPTION="Django 3rd party (social) account authentication"
-HOMEPAGE="
- https://allauth.org/
- https://codeberg.org/allauth/django-allauth
- https://pypi.org/project/django-allauth/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=dev-python/django-3.2[${PYTHON_USEDEP}]
- >=dev-python/python3-openid-3.0.8[${PYTHON_USEDEP}]
- >=dev-python/pyjwt-1.7[${PYTHON_USEDEP}]
- >=dev-python/requests-oauthlib-0.3.0[${PYTHON_USEDEP}]
- >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
-"
-# cryptography via pyjwt[crypto]
-RDEPEND+="
- dev-python/cryptography[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/pillow-9.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-django-4.5.2[${PYTHON_USEDEP}]
- >=dev-python/qrcode-7.0.0[${PYTHON_USEDEP}]
- >=dev-python/python3-saml-1.15.0[${PYTHON_USEDEP}]
- <dev-python/python3-saml-2.0.0[${PYTHON_USEDEP}]
- )
-"
-
-DOCS=( README.rst AUTHORS ChangeLog.rst )
-
-distutils_enable_sphinx docs \
- dev-python/sphinx-rtd-theme
-
diff --git a/dev-python/django-allauth/django-allauth-65.7.0.ebuild b/dev-python/django-allauth/django-allauth-65.7.0.ebuild
new file mode 100644
index 000000000000..bd8fed6eb815
--- /dev/null
+++ b/dev-python/django-allauth/django-allauth-65.7.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..14} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Django 3rd party (social) account authentication"
+HOMEPAGE="
+ https://allauth.org/
+ https://github.com/pennersr/django-allauth/
+ https://pypi.org/project/django-allauth/
+"
+SRC_URI="https://github.com/pennersr/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/django-3.2[${PYTHON_USEDEP}]
+ >=dev-python/pyjwt-1.7[${PYTHON_USEDEP}]
+ >=dev-python/requests-oauthlib-0.3.0[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
+"
+# cryptography via pyjwt[crypto]
+RDEPEND+="
+ dev-python/cryptography[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ >=dev-python/djangorestframework-3.15.2[${PYTHON_USEDEP}]
+ >=dev-python/fido2-1.1.2[${PYTHON_USEDEP}]
+ >=dev-python/pillow-9.0[${PYTHON_USEDEP}]
+ dev-python/psycopg[${PYTHON_USEDEP}]
+ >=dev-python/pytest-asyncio-0.23.8[${PYTHON_USEDEP}]
+ >=dev-python/pytest-django-4.5.2[${PYTHON_USEDEP}]
+ >=dev-python/python3-openid-3.0.8[${PYTHON_USEDEP}]
+ >=dev-python/python3-saml-1.15.0[${PYTHON_USEDEP}]
+ <dev-python/python3-saml-2.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-6.0.2[${PYTHON_USEDEP}]
+ >=dev-python/qrcode-7.0.0[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=( "${FILESDIR}/fido2.patch" )
+
+DOCS=( README.rst AUTHORS ChangeLog.rst )
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+ dev-python/sphinx-rtd-theme
+
+EPYTEST_IGNORE=(
+ # Requires django-ninja
+ allauth/headless/contrib/ninja/tests/test_security.py
+)
+EPYTEST_DESELECT=(
+ # Require network
+ allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login
+ allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login_with_extra_attributes
+)
+
+pkg_postinst() {
+ optfeature "MFA (Multi-factor authentication)" dev-python/qrcode dev-python/fido2
+ optfeature "OpenID or Steam" dev-python/python3-openid
+ optfeature "SAML authentication" dev-python/python3-saml
+}
diff --git a/dev-python/django-allauth/files/fido2.patch b/dev-python/django-allauth/files/fido2.patch
new file mode 100644
index 000000000000..8d70c5234487
--- /dev/null
+++ b/dev-python/django-allauth/files/fido2.patch
@@ -0,0 +1,53 @@
+From cae122759be28047727787e1eb4955c56553ede1 Mon Sep 17 00:00:00 2001
+From: Raymond Penners <raymond.penners@intenct.nl>
+Date: Tue, 20 May 2025 18:41:14 +0200
+Subject: [PATCH] fix(webauthn): fido2 v2 compatibility
+
+---
+ allauth/mfa/webauthn/internal/auth.py | 7 +++++--
+ setup.cfg | 10 +++++-----
+ 2 files changed, 10 insertions(+), 7 deletions(-)
+
+diff --git a/allauth/mfa/webauthn/internal/auth.py b/allauth/mfa/webauthn/internal/auth.py
+index d0751d7aa4..22bae81223 100644
+--- a/allauth/mfa/webauthn/internal/auth.py
++++ b/allauth/mfa/webauthn/internal/auth.py
+@@ -23,8 +23,11 @@
+ from allauth.mfa.models import Authenticator
+
+
+-fido2.features.webauthn_json_mapping.enabled = True
+-
++try:
++ fido2.features.webauthn_json_mapping.enabled = True # type:ignore[attr-defined]
++except AttributeError:
++ # https://github.com/Yubico/python-fido2/blob/main/doc/Migration_1-2.adoc
++ pass
+
+ STATE_SESSION_KEY = "mfa.webauthn.state"
+ EXTENSIONS = {"credProps": True}
+--- a/setup.cfg 2025-04-03 07:48:54.000000000 -0000
++++ b/setup.cfg 2025-06-16 17:24:37.557366540 -0000
+@@ -52,17 +52,17 @@
+
+ [options.extras_require]
+ mfa =
+- qrcode >= 7.0.0
+- fido2 >= 1.1.2
++ qrcode >= 7.0.0,<9
++ fido2 >= 1.1.2,<3
+ openid =
+- python3-openid >= 3.0.8
++ python3-openid >= 3.0.8,<4
+ saml =
+ python3-saml>=1.15.0,<2.0.0
+ steam =
+- python3-openid >= 3.0.8
++ python3-openid >= 3.0.8,<4
+ socialaccount =
+ requests-oauthlib >= 0.3.0
+- requests >= 2.0.0
++ requests >= 2.0.0,<3
+ pyjwt[crypto] >= 1.7
+
+ [options.packages.find]
diff --git a/dev-python/django-allauth/metadata.xml b/dev-python/django-allauth/metadata.xml
index 36acccda7221..69d156e471cf 100644
--- a/dev-python/django-allauth/metadata.xml
+++ b/dev-python/django-allauth/metadata.xml
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>dev@liguros.net</email>
- <name>Development</name>
+ <maintainer type="person">
+ <email>marcin.deranek@slonko.net</email>
+ <name>Marcin Deranek</name>
</maintainer>
-
- <origin>ports</origin>
+ <upstream>
+ <bugs-to>https://github.com/pennersr/django-allauth/issues</bugs-to>
+ </upstream>
+ <origin>slonko-overlay</origin>
</pkgmetadata> \ No newline at end of file