diff --git a/srcpkgs/python3-certifi/patches/system-cacert.patch b/srcpkgs/python3-certifi/patches/system-cacert.patch index 7e41029aa1e..6e18eccdca0 100644 --- a/srcpkgs/python3-certifi/patches/system-cacert.patch +++ b/srcpkgs/python3-certifi/patches/system-cacert.patch @@ -1,9 +1,10 @@ --- a/certifi/core.py +++ b/certifi/core.py -@@ -10,36 +10,15 @@ import sys +@@ -13,38 +13,15 @@ def exit_cacert_ctx() -> None: + if sys.version_info >= (3, 11): - from importlib.resources import as_file, files +- from importlib.resources import as_file, files + from pathlib import Path - _CACERT_CTX = None @@ -31,6 +32,7 @@ - # we will also store that at the global level as well. - _CACERT_CTX = as_file(files("certifi").joinpath("cacert.pem")) - _CACERT_PATH = str(_CACERT_CTX.__enter__()) +- atexit.register(exit_cacert_ctx) - return _CACERT_PATH @@ -42,12 +44,12 @@ --- a/setup.py +++ b/setup.py -@@ -41,7 +41,7 @@ setup( - 'certifi', +@@ -35,7 +35,7 @@ setup( + "certifi", ], - package_dir={'certifi': 'certifi'}, -- package_data={'certifi': ['*.pem', 'py.typed']}, -+ package_data={'certifi': ['py.typed']}, + package_dir={"certifi": "certifi"}, +- package_data={"certifi": ["*.pem", "py.typed"]}, ++ package_data={"certifi": ["py.typed"]}, # data_files=[('certifi', ['certifi/cacert.pem'])], include_package_data=True, zip_safe=False, diff --git a/srcpkgs/python3-certifi/template b/srcpkgs/python3-certifi/template index 6917f4ba5b8..d5eeb68a616 100644 --- a/srcpkgs/python3-certifi/template +++ b/srcpkgs/python3-certifi/template @@ -1,16 +1,16 @@ # Template file for 'python3-certifi' pkgname=python3-certifi -version=2022.09.24 -revision=5 +version=2025.1.31 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3" +depends="python3 ca-certificates" short_desc="Curated collection of Root Certificates" maintainer="Karl Nilsson " license="MPL-2.0" homepage="https://certifi.io" -distfiles="https://github.com/certifi/python-certifi/archive/${version}.tar.gz" -checksum=8c1db7f2a3b272e8a90b2e1910763930fa81e2512fbb96cb7a25787d63765c78 +distfiles="${PYPI_SITE}/c/certifi/certifi-${version}.tar.gz" +checksum=3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651 post_extract() { rm -f certifi/cacert.pem