dev-python/authlib: Bump to 1.6.8

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-02-14 08:10:43 +01:00
parent acd4e55197
commit e5617ba31e
2 changed files with 75 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST authlib-1.6.7.gh.tar.gz 329587 BLAKE2B 60ad24eebf39532c46eef23ad4ee57948d8ad4b2eb52fe9df53235bfd87a4ac64f9ebae9d482c873034ee7474630d4c7e5b17f2b7eb3edd41bce2aaf5f0dd593 SHA512 2de10426fc12fb7a7ab9d286e1aef3762511543df4da2454ecf350ab3d0aa8b05f0403297ce7e74fa769c21236a91188696ba1b89b80ecf56435f629c47255b9
DIST authlib-1.6.8.gh.tar.gz 329609 BLAKE2B e8972c212911408e7b85a8d57d2a862b0b7ee3c8fe696ca3aea968fd9e4ebc3449f09287c6f5a9539f3fd2679e5044a65205a8e31637f78d8d17c1849baabdfa SHA512 bfed444114e0a8ade24f554af29251c4fe257463c66e2d850106906f7507c9bf67925bd578beaa3e566d9c1a437e6622a2ceecb357d9b7c5b1a7adfaf6b51a12

View File

@@ -0,0 +1,74 @@
# 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..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
}