commit:     4a2c110c0489f8ac0dae46a6b6f1a9c6e31fc1f5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  5 16:11:30 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr  5 16:12:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a2c110c

dev-python/stripe: Remove the use of dev-python/mock

Closes: https://bugs.gentoo.org/928616
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/stripe/stripe-8.10.0.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-python/stripe/stripe-8.10.0.ebuild 
b/dev-python/stripe/stripe-8.10.0.ebuild
index 333bbc608ba1..1c58ac6493eb 100644
--- a/dev-python/stripe/stripe-8.10.0.ebuild
+++ b/dev-python/stripe/stripe-8.10.0.ebuild
@@ -43,6 +43,9 @@ src_prepare() {
        if ! use telemetry; then
                sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py 
|| die
        fi
+       # https://github.com/stripe/stripe-python/pull/1297
+       sed -e 's:from mock:from unittest.mock:' \
+               -i tests/test_http_client.py || die
        distutils-r1_src_prepare
 }
 

Reply via email to