diff options
Diffstat (limited to 'app-misc/anki/files/24.04.1/revert-cert-store-hack.patch')
-rw-r--r-- | app-misc/anki/files/24.04.1/revert-cert-store-hack.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app-misc/anki/files/24.04.1/revert-cert-store-hack.patch b/app-misc/anki/files/24.04.1/revert-cert-store-hack.patch new file mode 100644 index 000000000000..0bef71e104ca --- /dev/null +++ b/app-misc/anki/files/24.04.1/revert-cert-store-hack.patch @@ -0,0 +1,21 @@ +pip_system_certs is a hack to force certifi to use the system +certificate store. Let's use dev-python/certifi, which is a hack of +its own, instead of introducing an automagical dependency. + +From: Lucio Sauer <watermanpaint@posteo.net> +--- a/qt/aqt/__init__.py ++++ b/qt/aqt/__init__.py +@@ -6,13 +6,6 @@ from __future__ import annotations + import logging + import sys + +-try: +- import pip_system_certs.wrapt_requests +-except ModuleNotFoundError: +- print( +- "Python module pip_system_certs is not installed. System certificate store and custom SSL certificates may not work. See: https://github.com/ankitects/anki/issues/3016" +- ) +- + if sys.version_info[0] < 3 or sys.version_info[1] < 9: + raise Exception("Anki requires Python 3.9+") + |