Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/certifi/
Date: Thu, 12 Sep 2019 14:11:05
Message-Id: 1568297455.b7e06d401cd2482b4be5187f5f55ee93c236e3ac.mgorny@gentoo
1 commit: b7e06d401cd2482b4be5187f5f55ee93c236e3ac
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 12 13:22:55 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 12 14:10:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7e06d40
7
8 dev-python/certifi: Bump to 2019.9.16
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/certifi/Manifest | 1 +
13 dev-python/certifi/certifi-2019.9.11.ebuild | 43 +++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-python/certifi/Manifest b/dev-python/certifi/Manifest
17 index 859e4a81c03..2373b632552 100644
18 --- a/dev-python/certifi/Manifest
19 +++ b/dev-python/certifi/Manifest
20 @@ -3,3 +3,4 @@ DIST certifi-2018.11.29.tar.gz 153772 BLAKE2B fb146409560beb85731b136541012f3f11
21 DIST certifi-2018.4.16.tar.gz 149967 BLAKE2B 4a69ec495266d54032dfabc9c17d0b1e78ad1467214f9f981feb4fae279c1f4b5f0bc3f7a643c2229b17d19e32c1ea894dc16d73b036a0b32f17faa9ac55615c SHA512 96369b318df9592ed4ff48d79ae695f89d27d85e8f5de72548fccb19ac15b83a33fb8bc096a3092d7a7f5b201af08805576888418c7927cf48b892df56464682
22 DIST certifi-2018.8.24.tar.gz 146866 BLAKE2B 92a609bffd777a624d18e612e2fa504b1cd4f0764f979d22bf6785158fb928d30984fba16b839f6b4066395dadcca485e6215c6f0b6b550d891673a79ea77c08 SHA512 bb0af24570dd4806bc80cd438cae42db82f820de815a6148b184f58c19cd91a03f9275815559817a84220dcbd7c87a4a7d12e35cf4a95a1dbad286a1dfecf907
23 DIST certifi-2019.6.16.tar.gz 156721 BLAKE2B 3990a9c122dbaf554f4482ad97192efa66f1cf54e83bd4ee67248bbea8797dc4da38ab537230a8263a491a2a2115528138965480ef4da6d6cba9ac2af5bff830 SHA512 4641626bc5073cd0b3a520855ddef1007dcb42933baa7a3469856f936e725581042bcbd5b67e984ba9748e7faa62b9125cba7dc160dcc5db2eafe46461a29f5e
24 +DIST certifi-2019.9.11.tar.gz 154855 BLAKE2B 1a2e39b44e2285bcf2dfc0104873fc2c5004c54b346a27beebffa28894c22ba77b7ba0b17131e686846be14c2200ea0fba89f8b465f4c61139122d88d6d1ebf6 SHA512 aab5734bf65cbad12772bb120153b0325a5c3226339e0a03fdf4c3413303feb930b6d53d1d9dab93bd4f3cf00d2bfbe86419c4c462570340f1a4aa143a31373c
25
26 diff --git a/dev-python/certifi/certifi-2019.9.11.ebuild b/dev-python/certifi/certifi-2019.9.11.ebuild
27 new file mode 100644
28 index 00000000000..50b26cdf12c
29 --- /dev/null
30 +++ b/dev-python/certifi/certifi-2019.9.11.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} )
38 +
39 +inherit distutils-r1 prefix readme.gentoo-r1
40 +
41 +DESCRIPTION="Python package for providing Mozilla's CA Bundle"
42 +HOMEPAGE="http://certifi.io/ https://pypi.org/project/certifi"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="MPL-2.0"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +IUSE=""
49 +
50 +RDEPEND="app-misc/ca-certificates"
51 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
52 +
53 +# Do not drop this patch -- this will affect system's security
54 +PATCHES=( "${FILESDIR}"/certifi-2018.4.16-use-system-cacerts.patch )
55 +
56 +python_prepare_all() {
57 + distutils-r1_python_prepare_all
58 +
59 + eprefixify certifi/core.py
60 +}
61 +
62 +python_install_all() {
63 + distutils-r1_python_install_all
64 +
65 + local DOC_CONTENTS="
66 + In Gentoo, we don't use certifi's bundled CA certificates.
67 + Instead we remove bundled cacert.pem and patch certifi
68 + to return system's CA certificates.
69 + "
70 + readme.gentoo_create_doc
71 +
72 + # Precaution -- nothing should use bundled CA certificates
73 + find "${D}" -name 'cacert.pem' -delete || die "Failed to delete bundled CA certificates"
74 +}