Files
guru/app-misc/anki-bin/files/anki-bin-24.04.1-revert-cert-store-hack.patch
Lucio Sauer 1d10f4112c app-misc/anki-bin: remove unnecessary optional dependency
pip_system_certs is not available as a Gentoo package (yet), but we
prefer dev-python/certifi aka. certifi-system-store in any case.

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
2024-04-29 16:13:50 +02:00

22 lines
748 B
Diff

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/aqt/__init__.py
+++ b/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+")