diff options
Diffstat (limited to 'dev-python/certifi')
| -rw-r--r-- | dev-python/certifi/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/certifi/certifi-2026.04.22.ebuild | 38 | ||||
| -rw-r--r-- | dev-python/certifi/certifi-2026.05.20.ebuild | 38 | ||||
| -rw-r--r-- | dev-python/certifi/files/certifi-2020.06.20-use-system-cacerts.patch | 17 | ||||
| -rw-r--r-- | dev-python/certifi/metadata.xml | 10 |
5 files changed, 105 insertions, 0 deletions
diff --git a/dev-python/certifi/Manifest b/dev-python/certifi/Manifest new file mode 100644 index 000000000000..d1f0a434ba44 --- /dev/null +++ b/dev-python/certifi/Manifest @@ -0,0 +1,2 @@ +DIST certifi-2026.04.22.tar.gz 137429 BLAKE2B bcfc5769d0a93333c25c9348fc624df023486b32073376bb48b2012d6fb9f9177dddbaf3ff20caab14f72e840acc0c7407d99bfeedc26e144cd79fa2e350a125 SHA512 c4dcc0b585458beb53fb85242feb5bda60a94855f58938c7bf213404fdec559099fe3ebc7707fd88ac834558d8901532594238fe25ec405c22b580e73cd22250 +DIST certifi-2026.05.20.tar.gz 135822 BLAKE2B e10fa6c0d160ff7085b58f8629524985c305927f7b960fa22509a9be886e56bcbf702c161f2aa5818d8160a468c4384eafd670035cf4ded60a86a8ace004760b SHA512 15be1720602a96446f442cca91f2c96ee4fb57612d90f18b68942431bb17a8136e517db550ed0bec01e44d985cb630650018f8d32ddbd77963c8544b5e457b62 diff --git a/dev-python/certifi/certifi-2026.04.22.ebuild b/dev-python/certifi/certifi-2026.04.22.ebuild new file mode 100644 index 000000000000..69cb118cff18 --- /dev/null +++ b/dev-python/certifi/certifi-2026.04.22.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 prefix readme.gentoo-r1 + +DESCRIPTION="Python package for providing Mozilla's CA Bundle" +HOMEPAGE="https://pypi.org/project/certifi/" +SRC_URI="https://github.com/certifi/python-certifi/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="app-misc/ca-certificates" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +S="${WORKDIR}/python-${P}" +PATCH="$FILESDIR}/${P}-use-system-cacerts.patch" + +python_prepare_all() { + distutils-r1_python_prepare_all + eprefixify certifi/core.py +} + +python_install_all() { + distutils-r1_python_install_all + + local DOC_CONTENTS=" + In Gentoo, we don't use certifi's bundled CA certificates. + Instead we remove bundled cacert.pem and patch certifi + to return system's CA certificates. + " + readme.gentoo_create_doc +} diff --git a/dev-python/certifi/certifi-2026.05.20.ebuild b/dev-python/certifi/certifi-2026.05.20.ebuild new file mode 100644 index 000000000000..69cb118cff18 --- /dev/null +++ b/dev-python/certifi/certifi-2026.05.20.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 prefix readme.gentoo-r1 + +DESCRIPTION="Python package for providing Mozilla's CA Bundle" +HOMEPAGE="https://pypi.org/project/certifi/" +SRC_URI="https://github.com/certifi/python-certifi/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="app-misc/ca-certificates" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +S="${WORKDIR}/python-${P}" +PATCH="$FILESDIR}/${P}-use-system-cacerts.patch" + +python_prepare_all() { + distutils-r1_python_prepare_all + eprefixify certifi/core.py +} + +python_install_all() { + distutils-r1_python_install_all + + local DOC_CONTENTS=" + In Gentoo, we don't use certifi's bundled CA certificates. + Instead we remove bundled cacert.pem and patch certifi + to return system's CA certificates. + " + readme.gentoo_create_doc +} diff --git a/dev-python/certifi/files/certifi-2020.06.20-use-system-cacerts.patch b/dev-python/certifi/files/certifi-2020.06.20-use-system-cacerts.patch new file mode 100644 index 000000000000..750954fa869c --- /dev/null +++ b/dev-python/certifi/files/certifi-2020.06.20-use-system-cacerts.patch @@ -0,0 +1,17 @@ +diff -urN certifi-2020.6.20.orig/certifi/core.py certifi-2020.6.20/certifi/core.py +--- certifi-2020.6.20.orig/certifi/core.py 2020-08-01 17:50:13.139849550 +0200 ++++ certifi-2020.6.20/certifi/core.py 2020-08-01 17:52:51.614857443 +0200 +@@ -51,10 +51,9 @@ + # If we don't have importlib.resources, then we will just do the old logic + # of assuming we're on the filesystem and munge the path directly. + def where(): +- f = os.path.dirname(__file__) +- +- return os.path.join(f, "cacert.pem") ++ return "@GENTOO_PORTAGE_EPREFIX@/etc/ssl/certs/ca-certificates.crt" + + + def contents(): +- return read_text("certifi", "cacert.pem", encoding="ascii") ++ with open(where(), "r", encoding="ascii") as f: ++ return f.read() diff --git a/dev-python/certifi/metadata.xml b/dev-python/certifi/metadata.xml new file mode 100644 index 000000000000..55f3f3345a49 --- /dev/null +++ b/dev-python/certifi/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + <origin>baldeagleos-repo</origin> + <stabilize-allarches /> +</pkgmetadata> |
