1 |
commit: 177835dccf3aa1aa88aa4341606b05faac142f0f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 10:29:02 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 10:29:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177835dc |
7 |
|
8 |
dev-python/httplib2: Avoid optional cryptography dep |
9 |
|
10 |
Closes: https://bugs.gentoo.org/845336 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/httplib2/httplib2-0.20.4.ebuild | 2 ++ |
14 |
1 file changed, 2 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httplib2/httplib2-0.20.4.ebuild b/dev-python/httplib2/httplib2-0.20.4.ebuild |
17 |
index bc4dff342200..afa4a1e94840 100644 |
18 |
--- a/dev-python/httplib2/httplib2-0.20.4.ebuild |
19 |
+++ b/dev-python/httplib2/httplib2-0.20.4.ebuild |
20 |
@@ -40,6 +40,8 @@ PATCHES=( "${FILESDIR}"/${PN}-0.12.1-use-system-cacerts.patch ) |
21 |
|
22 |
src_prepare() { |
23 |
sed -i -e '/--cov/d' setup.cfg || die |
24 |
+ # cryptography dep is entirely optional, and has a good fallback |
25 |
+ sed -i -e 's:from cryptography.*:pass:' tests/__init__.py || die |
26 |
distutils-r1_src_prepare |
27 |
} |