mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/authlib: Bump to 1.6.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST authlib-1.6.10.gh.tar.gz 330246 BLAKE2B f07f4fa116880f4e66f5a4b11e9fd3a519f2754ae2fed91966406cb7ca7780dfaae9180dda3179c43dd3c5e7a7b80ddb69157dc4e5589f394a658aa8de9dfdc0 SHA512 ba10af251f23a8d790026fbe2f27418e86b76fbcc0171b3400cf8fe2b2bc93eaf5e49a240ee092bee10a620d43e7b22e246609d1089b590668bf1a4eac2d01f6
|
||||
DIST authlib-1.6.9.gh.tar.gz 329652 BLAKE2B 0fed4ffffde554fac45519ced2ffe8d73343d9c52a3d177af5ba79714ca9bd80b08279c1f94c9521274fe994036e100d419a55acb1b86678e59a8f538f6aa82a SHA512 4e1ff409a1cae3dd6fdccd42411c832f44a1f00aaa60eb4dee77efc89b7a44813c3e674d3e785dd71d8090c29728590c7dce8073dd13c7c73569c78cdc47a3ff
|
||||
|
||||
68
dev-python/authlib/authlib-1.6.10.ebuild
Normal file
68
dev-python/authlib/authlib-1.6.10.ebuild
Normal 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/pycryptodome-3.10[${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
|
||||
}
|
||||
Reference in New Issue
Block a user