summaryrefslogtreecommitdiff
path: root/dev-python/authlib
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-09-18 19:04:12 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-09-18 19:04:12 +0000
commitac2036dab2d57b7eaa2b2ede1c4f6c961a3a3f9c (patch)
tree18b72ec0f6baa4ca38b9aa44fe9b89df314eeb53 /dev-python/authlib
parentd4a51aa2fab5222ddc0250e1238eb657533f7e3e (diff)
downloadbaldeagleos-repo-ac2036dab2d57b7eaa2b2ede1c4f6c961a3a3f9c.tar.gz
baldeagleos-repo-ac2036dab2d57b7eaa2b2ede1c4f6c961a3a3f9c.tar.xz
baldeagleos-repo-ac2036dab2d57b7eaa2b2ede1c4f6c961a3a3f9c.zip
Adding metadata
Diffstat (limited to 'dev-python/authlib')
-rw-r--r--dev-python/authlib/Manifest1
-rw-r--r--dev-python/authlib/authlib-1.6.4.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/authlib/Manifest b/dev-python/authlib/Manifest
index 439be813ce11..61f3d1ff8327 100644
--- a/dev-python/authlib/Manifest
+++ b/dev-python/authlib/Manifest
@@ -1,2 +1,3 @@
DIST authlib-1.6.2.gh.tar.gz 327687 BLAKE2B 81bcbaa4cd08d10afb6d565e65c629e342f6ff22adbba15a0e881a0857061bdbedb19a77b368b9d5520c521140552a8fd8f4aa3628de222321aed48c977f8ebb SHA512 71cbb4d806d5edc204afc176a6ba339481c56fd45cbf14e83106941372d2ccf5f975e30f9c5eaf8a16c2680e161a3905a79be339a870d34e3a01ee23773771a5
DIST authlib-1.6.3.gh.tar.gz 328237 BLAKE2B 820828b67e785126a7dbd9f21cbae5174600700eaa67874418738026920930cb119660c235a2eb6540fb4e42cc3da2178048918d9122fb394fcbe5a523e1845d SHA512 d53e1ffa929f1f26e9c129b600a14f0b80a49fd33735272b382c18a8d7cae4ce6758e3880b183c34da1daa040e90bc35f32131c8756574bc97fc502e1694237c
+DIST authlib-1.6.4.gh.tar.gz 327564 BLAKE2B eb9c21d2b60dc9ec38b643c2d3a8cddb3676b3a6de1d4d926cfaa60ad02189fa78e825d0a591883e6cf5a07a430ab7b3dab3bafa4e5e5679378dea6150a6ab41 SHA512 4081671cb93e7470d908145140379e8f647959dc240a934984a8a74120bf5a0ecfec377bd67591945360045e024f32f4e0bb1cea24d9d7a39be7ae08b308d10c
diff --git a/dev-python/authlib/authlib-1.6.4.ebuild b/dev-python/authlib/authlib-1.6.4.ebuild
new file mode 100644
index 000000000000..b5ffdd88beb0
--- /dev/null
+++ b/dev-python/authlib/authlib-1.6.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517="setuptools"
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python library in building OAuth and OpenID Connect servers and clients"
+HOMEPAGE="
+ https://authlib.org/
+ https://github.com/authlib/authlib/
+ https://pypi.org/project/Authlib/
+"
+# pypi source distribution excludes the tests
+SRC_URI="
+ https://github.com/authlib/authlib/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="django flask jose test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ django? (
+ dev-python/django[${PYTHON_USEDEP}]
+ )
+ flask? (
+ dev-python/flask[${PYTHON_USEDEP}]
+ dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
+ )
+ jose? (
+ >=dev-python/pycryptodome-3.10[${PYTHON_USEDEP}]
+ )
+"
+BDEPEND="
+ test? (
+ dev-python/anyio[${PYTHON_USEDEP}]
+ dev-python/cachelib[${PYTHON_USEDEP}]
+ dev-python/django[${PYTHON_USEDEP}]
+ dev-python/flask[${PYTHON_USEDEP}]
+ dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
+ dev-python/httpx[${PYTHON_USEDEP}]
+ >=dev-python/pycryptodome-3.10[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/starlette[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-asyncio )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # convert from pycryptodomex to pycryptodome
+ sed -i -e 's:from Cryptodome:from Crypto:' \
+ authlib/jose/drafts/_jwe_enc_cryptodome.py || die
+}
+
+python_test() {
+ local -x DJANGO_SETTINGS_MODULE=tests.django_settings
+ epytest tests/{core,jose,clients,flask}
+
+ # TODO: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
+ #epytest tests/django
+}