diff options
Diffstat (limited to 'dev-python/certifi')
-rw-r--r-- | dev-python/certifi/Manifest | 6 | ||||
-rw-r--r-- | dev-python/certifi/certifi-2999.ebuild (renamed from dev-python/certifi/certifi-10001-r1.ebuild) | 4 | ||||
-rw-r--r-- | dev-python/certifi/certifi-3021.3.16.ebuild | 55 | ||||
-rw-r--r-- | dev-python/certifi/metadata.xml | 3 |
4 files changed, 63 insertions, 5 deletions
diff --git a/dev-python/certifi/Manifest b/dev-python/certifi/Manifest index 253689fc4e15..f7e079752a09 100644 --- a/dev-python/certifi/Manifest +++ b/dev-python/certifi/Manifest @@ -1,3 +1,5 @@ DIST certifi-shim-10001.tar.gz 4061 BLAKE2B 183c573b958921877b14e38e9e26842e8a4f1c1617979a30b65ef1e2bbf001e5ff0aab830e4399906a7d21fb3c71ac12b1e757e4d283aae16cced8e7de7c2a1d SHA512 93beea61e579b2b414bd37c63eba49365e0a1a62304e0c7ac920bedaf5d72cb095a4a46b2240b3c2e6ee31e5b91cd520ae8348b6a8033212d11bbca31db6750c -EBUILD certifi-10001-r1.ebuild 971 BLAKE2B 297d433fc7b348639780a87c563a23dd2687450f9e1c6a141b9fa60d6859d21e1be0e25cbd28a6e7f97158dc9924d91e7c2434ece7311f46536957ea646c427e SHA512 e26246ca128eb9720e14a907102a8c847b06da8567af7fbc3786663a60a7a6ae2d0905f670795f32bff93af367c0cf94b8b6d4cd537e69248981e1eefdcce481 -MISC metadata.xml 346 BLAKE2B 8045c3d734e2b812bb7b9fe832b922aa04b06855a003ead2180c73a8f9b06be8c6d7b89949044037bb6f2feb74a6f6fdc7e7e0e1dc7885e824e143d33f728927 SHA512 a0350d1b75461d19d03707b405638fbaddbb75d09fc974e74f9b788028a27b7e0a7920ff309aff2b21ddf7ac0ef720859628f644d47c75309f042fd276096913 +DIST certifi-system-store-3021.3.16.tar.gz 13784 BLAKE2B c0c2322fe298d363c4ef4dada2c0db8837bf7a32d86a7b54a1b45bb3dd3c99d732b2612f25495f4a59d9692f896e2b962e7057fa5fec9998724476db48f90c2a SHA512 44953ed8a3deb5fa4aff3f74afa557219e042acea395e9cdebfd26fd43ce0bdeca07c6b6dfe91977f88852e7674b94337b93c4d78fd2da6f47a6187fa46d6668 +EBUILD certifi-2999.ebuild 971 BLAKE2B e78f80fc5929124cb231c587adc292b976ec2518464cd91edc00e213bc9fb6ffcad8c11032e49ab3a36a33b4cf238d601dc005da6442932096bc3d1f23932fb1 SHA512 b3b1d795d4926b82a02f2c32a5c0f4fae6e3a0b9770b2c562cf64329bf49e4b351418571dd67841e3e21a8c241bb1804f63b831821d2cac6d45b6fd841625b9f +EBUILD certifi-3021.3.16.ebuild 1455 BLAKE2B ee0fad9191801ad11d1f570e0ecfe14234aaf8e34eeb19fc3defd843ada620ffb7cd84781466ec50096d7180aa9ba7d17108cc77ce98421d0fdb5785ba207b9a SHA512 c88eeeaad446fdfd1c12f180cdaf05f0ed4ccc92feeb88de80afcdd83419623a36cf78874613a68a01f8278995eeafeb34fd1a33608528fbdaf3ea6deb8ba587 +MISC metadata.xml 427 BLAKE2B 12dfba937658c8ecdf591eef8803d721aec4be7f4f78e819d8add5ea85b5b73a9c071ae8d79d7abcedf6876ea53ea5365a7fd9adffc1c04ac4738e9f05ef58af SHA512 b4a027b08e92241cd0eb000e3220eaa4008f3e7b49f52b00b4b6abeaf7d66cfc92597a9633e1e29ff98758f258678ae09c213d332614d3f94e003ff0e59ad74b diff --git a/dev-python/certifi/certifi-10001-r1.ebuild b/dev-python/certifi/certifi-2999.ebuild index e810f32cf935..c78d9961bb3b 100644 --- a/dev-python/certifi/certifi-10001-r1.ebuild +++ b/dev-python/certifi/certifi-2999.ebuild @@ -5,11 +5,11 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 -MY_P=certifi-shim-${PV} +MY_P=certifi-shim-10001 DESCRIPTION="Thin replacement for certifi using system certificate store" HOMEPAGE=" https://github.com/mgorny/certifi-shim/ diff --git a/dev-python/certifi/certifi-3021.3.16.ebuild b/dev-python/certifi/certifi-3021.3.16.ebuild new file mode 100644 index 000000000000..9fb5fa1b8014 --- /dev/null +++ b/dev-python/certifi/certifi-3021.3.16.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} pypy3 ) +inherit distutils-r1 + +MY_P=certifi-system-store-${PV} +DESCRIPTION="A certifi hack to use system trust store on Linux/FreeBSD" +HOMEPAGE=" + https://github.com/tiran/certifi-system-store/ + https://pypi.org/project/certifi-system-store/" +SRC_URI=" + https://github.com/tiran/certifi-system-store/archive/v${PV}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="MPL-2.0" +SLOT="0" +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" + +RDEPEND="app-misc/ca-certificates" + +distutils_enable_tests --install pytest + +EPYTEST_IGNORE=( + # requires Internet + tests/test_requests.py +) + +src_prepare() { + sed -i -e "s^/etc^${EPREFIX}/etc^" src/certifi/core.py || die + distutils-r1_src_prepare +} + +symlink_info() { + pushd "${1}" >/dev/null || die + local egginfo=( certifi_system_store*.egg-info ) + [[ -d ${egginfo} ]] || die + ln -v -s "${egginfo}" "${egginfo/_system_store}" || die + popd >/dev/null || die +} + +python_test() { + distutils_install_for_testing + symlink_info "${TEST_DIR}"/lib + epytest +} + +python_install() { + distutils-r1_python_install + symlink_info "${D}$(python_get_sitedir)" +} diff --git a/dev-python/certifi/metadata.xml b/dev-python/certifi/metadata.xml index 8af22c60e688..db64a2b878fe 100644 --- a/dev-python/certifi/metadata.xml +++ b/dev-python/certifi/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <stabilize-allarches/> <upstream> - <remote-id type="pypi">certifi</remote-id> + <remote-id type="github">tiran/certifi-system-store</remote-id> + <remote-id type="pypi">certifi-system-store</remote-id> </upstream> </pkgmetadata> |