From 537a5b811c7ad6b0cf23f4c8aa793aa767e525e2 Mon Sep 17 00:00:00 2001 From: VojtechStep Date: Wed, 1 Oct 2025 19:08:08 +0200 Subject: [PATCH] python3Packages.certifi: fix build on Python 3.10 The previous commit to the patch removed too much when adjusting to upstream deprecating 3.7 --- pkgs/development/python-modules/certifi/env.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/certifi/env.patch b/pkgs/development/python-modules/certifi/env.patch index 332087802b1a5..2577cba63c723 100644 --- a/pkgs/development/python-modules/certifi/env.patch +++ b/pkgs/development/python-modules/certifi/env.patch @@ -1,5 +1,5 @@ diff --git a/certifi/core.py b/certifi/core.py -index 1c9661c..7039be3 100644 +index 1c9661c..d904382 100644 --- a/certifi/core.py +++ b/certifi/core.py @@ -4,6 +4,7 @@ certifi.py @@ -51,3 +51,11 @@ index 1c9661c..7039be3 100644 def where() -> str: # This is slightly terrible, but we want to delay extracting the +@@ -80,4 +92,6 @@ else: + return _CACERT_PATH + + def contents() -> str: +- return read_text("certifi", "cacert.pem", encoding="ascii") ++ if _CACERT_PATH is not None: ++ return open(_CACERT_PATH, encoding="utf-8").read() ++ return read_text("certifi", "cacert.pem", encoding="utf-8")