1 |
commit: b04cf71a502371aba04e99f7922c4ae1f20a106b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 10:23:58 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 10:27:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b04cf71a |
7 |
|
8 |
dev-python/certifi: Switch to certifi-system-store, v3021.3.16 |
9 |
|
10 |
Switch to a third-party certifi-system-store package that seems a little |
11 |
bit more robust than my certifi-shim, and most importantly -- it is |
12 |
maintained by somebody else ;-). |
13 |
|
14 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
15 |
|
16 |
dev-python/certifi/Manifest | 1 + |
17 |
dev-python/certifi/certifi-3021.3.16.ebuild | 55 +++++++++++++++++++++++++++++ |
18 |
dev-python/certifi/metadata.xml | 3 +- |
19 |
3 files changed, 58 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/dev-python/certifi/Manifest b/dev-python/certifi/Manifest |
22 |
index dd748ac592e..7640968ec15 100644 |
23 |
--- a/dev-python/certifi/Manifest |
24 |
+++ b/dev-python/certifi/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST certifi-shim-10001.tar.gz 4061 BLAKE2B 183c573b958921877b14e38e9e26842e8a4f1c1617979a30b65ef1e2bbf001e5ff0aab830e4399906a7d21fb3c71ac12b1e757e4d283aae16cced8e7de7c2a1d SHA512 93beea61e579b2b414bd37c63eba49365e0a1a62304e0c7ac920bedaf5d72cb095a4a46b2240b3c2e6ee31e5b91cd520ae8348b6a8033212d11bbca31db6750c |
27 |
+DIST certifi-system-store-3021.3.16.tar.gz 13784 BLAKE2B c0c2322fe298d363c4ef4dada2c0db8837bf7a32d86a7b54a1b45bb3dd3c99d732b2612f25495f4a59d9692f896e2b962e7057fa5fec9998724476db48f90c2a SHA512 44953ed8a3deb5fa4aff3f74afa557219e042acea395e9cdebfd26fd43ce0bdeca07c6b6dfe91977f88852e7674b94337b93c4d78fd2da6f47a6187fa46d6668 |
28 |
|
29 |
diff --git a/dev-python/certifi/certifi-3021.3.16.ebuild b/dev-python/certifi/certifi-3021.3.16.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..9fb5fa1b801 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/certifi/certifi-3021.3.16.ebuild |
34 |
@@ -0,0 +1,55 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
39 |
+EAPI=7 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+MY_P=certifi-system-store-${PV} |
45 |
+DESCRIPTION="A certifi hack to use system trust store on Linux/FreeBSD" |
46 |
+HOMEPAGE=" |
47 |
+ https://github.com/tiran/certifi-system-store/ |
48 |
+ https://pypi.org/project/certifi-system-store/" |
49 |
+SRC_URI=" |
50 |
+ https://github.com/tiran/certifi-system-store/archive/v${PV}.tar.gz |
51 |
+ -> ${MY_P}.tar.gz" |
52 |
+S=${WORKDIR}/${MY_P} |
53 |
+ |
54 |
+LICENSE="MPL-2.0" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
57 |
+ |
58 |
+RDEPEND="app-misc/ca-certificates" |
59 |
+ |
60 |
+distutils_enable_tests --install pytest |
61 |
+ |
62 |
+EPYTEST_IGNORE=( |
63 |
+ # requires Internet |
64 |
+ tests/test_requests.py |
65 |
+) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ sed -i -e "s^/etc^${EPREFIX}/etc^" src/certifi/core.py || die |
69 |
+ distutils-r1_src_prepare |
70 |
+} |
71 |
+ |
72 |
+symlink_info() { |
73 |
+ pushd "${1}" >/dev/null || die |
74 |
+ local egginfo=( certifi_system_store*.egg-info ) |
75 |
+ [[ -d ${egginfo} ]] || die |
76 |
+ ln -v -s "${egginfo}" "${egginfo/_system_store}" || die |
77 |
+ popd >/dev/null || die |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ distutils_install_for_testing |
82 |
+ symlink_info "${TEST_DIR}"/lib |
83 |
+ epytest |
84 |
+} |
85 |
+ |
86 |
+python_install() { |
87 |
+ distutils-r1_python_install |
88 |
+ symlink_info "${D}$(python_get_sitedir)" |
89 |
+} |
90 |
|
91 |
diff --git a/dev-python/certifi/metadata.xml b/dev-python/certifi/metadata.xml |
92 |
index 8af22c60e68..db64a2b878f 100644 |
93 |
--- a/dev-python/certifi/metadata.xml |
94 |
+++ b/dev-python/certifi/metadata.xml |
95 |
@@ -7,6 +7,7 @@ |
96 |
</maintainer> |
97 |
<stabilize-allarches/> |
98 |
<upstream> |
99 |
- <remote-id type="pypi">certifi</remote-id> |
100 |
+ <remote-id type="github">tiran/certifi-system-store</remote-id> |
101 |
+ <remote-id type="pypi">certifi-system-store</remote-id> |
102 |
</upstream> |
103 |
</pkgmetadata> |