dev-python/httplib2: Avoid optional cryptography dep

Closes: https://bugs.gentoo.org/845336
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-05-18 12:29:02 +02:00
parent ca803b3028
commit 177835dccf

View File

@@ -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
}