commit: 53e5328ba34e052307ce1c345972a6f84f073b93
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 23 05:07:24 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 23 05:21:59 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53e5328b
dev-python/google-auth-oauthlib: Remove dev-python/mock dep
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../google-auth-oauthlib-1.2.2.ebuild | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.2.ebuild
b/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.2.ebuild
index 4df7fe361700..a83d279595b2 100644
--- a/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.2.ebuild
+++ b/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.2.ebuild
@@ -30,10 +30,13 @@ RDEPEND="
>=dev-python/requests-oauthlib-0.7.0[${PYTHON_USEDEP}]
"
-BDEPEND="
- test? (
- dev-python/mock[${PYTHON_USEDEP}]
- )
-"
-
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
+}