diff --git a/dev-python/google-auth-oauthlib/Manifest b/dev-python/google-auth-oauthlib/Manifest index f432f0f2b892e..9675ac445b178 100644 --- a/dev-python/google-auth-oauthlib/Manifest +++ b/dev-python/google-auth-oauthlib/Manifest @@ -1 +1,2 @@ DIST google-auth-library-python-oauthlib-1.2.2.gh.tar.gz 55488 BLAKE2B ebc67448bc1bfa9ea2879bee5a655dbb0beca01e4e43abe712860c64628d764405339220695a508586175a7590f3fc08d2b87163ec9bb59a4197a968880b8492 SHA512 5e57320b4c6ffdde42975625268647afa02978cb0d6598ca2db9986fa4744f7f8740779c6010f99064a223661c879cc4928642d9a9ebc308aabd950cdfd232f3 +DIST google-auth-library-python-oauthlib-1.2.3.gh.tar.gz 54146 BLAKE2B c40f0a772887158286856e9f5c3a6e598f3395ef223928249bf7d7c85fc3e0ec20c31374b899b0c39c7e7b3beb83b1c0e75c59038ff997806a1774247a4b1e68 SHA512 7c69bb377be65321cd88c0fd0317f69d10b430d4d505346c2c0d557d0488c05d225e4f24d850f9f09fafd908626551b34594c9a4f8587cb0a5e0674b6f3c2c45 diff --git a/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.3.ebuild b/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.3.ebuild new file mode 100644 index 0000000000000..d6d70fedaa419 --- /dev/null +++ b/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.3.ebuild @@ -0,0 +1,44 @@ +# 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_{11..14} ) + +inherit distutils-r1 + +MY_P=google-auth-library-python-oauthlib-${PV} +DESCRIPTION="Google Authentication Library" +HOMEPAGE=" + https://github.com/googleapis/google-auth-library-python-oauthlib/ + https://pypi.org/project/google-auth-oauthlib/ +" +SRC_URI=" + https://github.com/googleapis/google-auth-library-python-oauthlib/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/click-6.0.0[${PYTHON_USEDEP}] + =dev-python/google-auth-2.15.0[${PYTHON_USEDEP}] + >=dev-python/requests-oauthlib-0.7.0[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # remove mock dependency + # https://github.com/googleapis/google-auth-library-python-oauthlib/pull/351 + find -name 'test_*.py' -exec \ + sed -i -e 's:import mock:from unittest import mock:' {} + || die +}