diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-04-19 07:10:49 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-04-19 07:10:49 +0000 |
| commit | bd587a36d251fb687d456c2063414e95dd5e3bd3 (patch) | |
| tree | 331c7ee19fc514efed103c29bbf820342d7755ed /dev-python/authlib/authlib-1.7.0.ebuild | |
| parent | 3a33857d73679f670502e2a6490ffef5771e53f7 (diff) | |
| download | baldeagleos-repo-bd587a36d251fb687d456c2063414e95dd5e3bd3.tar.gz baldeagleos-repo-bd587a36d251fb687d456c2063414e95dd5e3bd3.tar.xz baldeagleos-repo-bd587a36d251fb687d456c2063414e95dd5e3bd3.zip | |
Adding metadata
Diffstat (limited to 'dev-python/authlib/authlib-1.7.0.ebuild')
| -rw-r--r-- | dev-python/authlib/authlib-1.7.0.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/authlib/authlib-1.7.0.ebuild b/dev-python/authlib/authlib-1.7.0.ebuild new file mode 100644 index 000000000000..c55822ec8396 --- /dev/null +++ b/dev-python/authlib/authlib-1.7.0.ebuild @@ -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_{10..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 +} |
