1 |
commit: c09f16907b62d2ba1febf9ae88fa15c7aad998fc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 13:51:20 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 15:01:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c09f1690 |
7 |
|
8 |
dev-python/certifi: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/certifi/certifi-3021.3.16-r2.ebuild | 51 ++++++++++++++++++++++++++ |
13 |
1 file changed, 51 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/certifi/certifi-3021.3.16-r2.ebuild b/dev-python/certifi/certifi-3021.3.16-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..a26991a8a727 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/certifi/certifi-3021.3.16-r2.ebuild |
20 |
@@ -0,0 +1,51 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+MY_P=certifi-system-store-${PV} |
33 |
+DESCRIPTION="A certifi hack to use system trust store on Linux/FreeBSD" |
34 |
+HOMEPAGE=" |
35 |
+ https://github.com/tiran/certifi-system-store/ |
36 |
+ https://pypi.org/project/certifi-system-store/ |
37 |
+" |
38 |
+SRC_URI=" |
39 |
+ https://github.com/tiran/certifi-system-store/archive/v${PV}.tar.gz |
40 |
+ -> ${MY_P}.tar.gz |
41 |
+" |
42 |
+S=${WORKDIR}/${MY_P} |
43 |
+ |
44 |
+LICENSE="MPL-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ app-misc/ca-certificates |
50 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
51 |
+" |
52 |
+ |
53 |
+EPYTEST_IGNORE=( |
54 |
+ # requires Internet |
55 |
+ tests/test_requests.py |
56 |
+) |
57 |
+ |
58 |
+distutils_enable_tests pytest |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ sed -i -e "s^/etc^${EPREFIX}/etc^" src/certifi/core.py || die |
62 |
+ distutils-r1_src_prepare |
63 |
+} |
64 |
+ |
65 |
+python_compile() { |
66 |
+ distutils-r1_python_compile |
67 |
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die |
68 |
+ local distinfo=( certifi_system_store*.dist-info ) |
69 |
+ [[ -d ${distinfo} ]] || die |
70 |
+ ln -v -s "${distinfo}" "${distinfo/_system_store}" || die |
71 |
+} |