dev-python/authlib: Bump to 1.7.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-19 04:19:35 +02:00
parent b0015c7f7b
commit 5632d4f3b4
2 changed files with 69 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST authlib-1.6.10.gh.tar.gz 330246 BLAKE2B f07f4fa116880f4e66f5a4b11e9fd3a519f2754ae2fed91966406cb7ca7780dfaae9180dda3179c43dd3c5e7a7b80ddb69157dc4e5589f394a658aa8de9dfdc0 SHA512 ba10af251f23a8d790026fbe2f27418e86b76fbcc0171b3400cf8fe2b2bc93eaf5e49a240ee092bee10a620d43e7b22e246609d1089b590668bf1a4eac2d01f6
DIST authlib-1.6.11.gh.tar.gz 330921 BLAKE2B 1024844f9fbe4c40962df5b8534d7be5bf5556dda80e47577b160598d315d533c21877fa05e7ced85dbddde1e7fabd97c9ae05cbff0a1f87e0bb3d5354c24f72 SHA512 177dbbd3635b314bc2d67bb5ff7c140d5b94d1affa78ba265aca5f8c6b68621215836754d057e7e742b7b14dffb85eff8a1ddfef4505aca1fbe199af37c617ea
DIST authlib-1.6.9.gh.tar.gz 329652 BLAKE2B 0fed4ffffde554fac45519ced2ffe8d73343d9c52a3d177af5ba79714ca9bd80b08279c1f94c9521274fe994036e100d419a55acb1b86678e59a8f538f6aa82a SHA512 4e1ff409a1cae3dd6fdccd42411c832f44a1f00aaa60eb4dee77efc89b7a44813c3e674d3e785dd71d8090c29728590c7dce8073dd13c7c73569c78cdc47a3ff
DIST authlib-1.7.0.gh.tar.gz 354993 BLAKE2B 14aec891290fa8997ebcbbbb5f4c42c7993333aa05629f5d3d03461b990b878ea24d8fbe3391a33182316fadbf690196f4f18db03c7997c6ae97c212b973a332 SHA512 67682d33e7e6686e4b00171fa483b32b8dfea3ace9b329804a9243ad8b8be3d93526676105f87707d9cb88fd88e4ec656ef6952cb657bed765e3260e2846b9cd

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{12..14} )
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 jose test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/cryptography[${PYTHON_USEDEP}]
django? (
dev-python/django[${PYTHON_USEDEP}]
)
jose? (
dev-python/joserfc[${PYTHON_USEDEP}]
)
"
BDEPEND="
test? (
dev-python/anyio[${PYTHON_USEDEP}]
dev-python/cachelib[${PYTHON_USEDEP}]
dev-python/django[${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 makes tests flaky
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}
# TODO: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
#epytest tests/django
}