commit:     177835dccf3aa1aa88aa4341606b05faac142f0f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 18 10:29:02 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 18 10:29:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177835dc

dev-python/httplib2: Avoid optional cryptography dep

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

 dev-python/httplib2/httplib2-0.20.4.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-python/httplib2/httplib2-0.20.4.ebuild 
b/dev-python/httplib2/httplib2-0.20.4.ebuild
index bc4dff342200..afa4a1e94840 100644
--- a/dev-python/httplib2/httplib2-0.20.4.ebuild
+++ b/dev-python/httplib2/httplib2-0.20.4.ebuild
@@ -40,6 +40,8 @@ PATCHES=( "${FILESDIR}"/${PN}-0.12.1-use-system-cacerts.patch 
)
 
 src_prepare() {
        sed -i -e '/--cov/d' setup.cfg || die
+       # cryptography dep is entirely optional, and has a good fallback
+       sed -i -e 's:from cryptography.*:pass:' tests/__init__.py || die
        distutils-r1_src_prepare
 }
 

Reply via email to