Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/certifi/
Date: Tue, 18 Sep 2018 21:23:11
Message-Id: 1537305706.98492dcdc7fd1eaf01e97af30a09adb7d2da4add.radhermit@gentoo
1 commit: 98492dcdc7fd1eaf01e97af30a09adb7d2da4add
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 15 23:50:40 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 18 21:21:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98492dcd
7
8 dev-python/certifi: version bump to 2018.8.24
9
10 dev-python/certifi/Manifest | 1 +
11 dev-python/certifi/certifi-2018.8.24.ebuild | 43 +++++++++++++++++++++++++++++
12 2 files changed, 44 insertions(+)
13
14 diff --git a/dev-python/certifi/Manifest b/dev-python/certifi/Manifest
15 index a9eeaebda9b..9c17c6e6e91 100644
16 --- a/dev-python/certifi/Manifest
17 +++ b/dev-python/certifi/Manifest
18 @@ -1 +1,2 @@
19 DIST certifi-2018.4.16.tar.gz 149967 BLAKE2B 4a69ec495266d54032dfabc9c17d0b1e78ad1467214f9f981feb4fae279c1f4b5f0bc3f7a643c2229b17d19e32c1ea894dc16d73b036a0b32f17faa9ac55615c SHA512 96369b318df9592ed4ff48d79ae695f89d27d85e8f5de72548fccb19ac15b83a33fb8bc096a3092d7a7f5b201af08805576888418c7927cf48b892df56464682
20 +DIST certifi-2018.8.24.tar.gz 146866 BLAKE2B 92a609bffd777a624d18e612e2fa504b1cd4f0764f979d22bf6785158fb928d30984fba16b839f6b4066395dadcca485e6215c6f0b6b550d891673a79ea77c08 SHA512 bb0af24570dd4806bc80cd438cae42db82f820de815a6148b184f58c19cd91a03f9275815559817a84220dcbd7c87a4a7d12e35cf4a95a1dbad286a1dfecf907
21
22 diff --git a/dev-python/certifi/certifi-2018.8.24.ebuild b/dev-python/certifi/certifi-2018.8.24.ebuild
23 new file mode 100644
24 index 00000000000..37a29cb5a00
25 --- /dev/null
26 +++ b/dev-python/certifi/certifi-2018.8.24.ebuild
27 @@ -0,0 +1,43 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
34 +
35 +inherit distutils-r1 prefix readme.gentoo-r1 versionator
36 +
37 +DESCRIPTION="Python package for providing Mozilla's CA Bundle"
38 +HOMEPAGE="http://certifi.io/ https://pypi.org/project/certifi"
39 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
40 +
41 +LICENSE="MPL-2.0"
42 +SLOT="0"
43 +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"
44 +IUSE=""
45 +
46 +RDEPEND="app-misc/ca-certificates"
47 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
48 +
49 +# Do not drop this patch -- this will affect system's security
50 +PATCHES=( "${FILESDIR}"/certifi-2018.4.16-use-system-cacerts.patch )
51 +
52 +python_prepare_all() {
53 + distutils-r1_python_prepare_all
54 +
55 + eprefixify certifi/core.py
56 +}
57 +
58 +python_install_all() {
59 + distutils-r1_python_install_all
60 +
61 + local DOC_CONTENTS="
62 + In Gentoo, we don't use certifi's bundled CA certificates.
63 + Instead we remove bundled cacert.pem and patch certifi
64 + to return system's CA certificates.
65 + "
66 + readme.gentoo_create_doc
67 +
68 + # Precaution -- nothing should use bundled CA certificates
69 + find "${D}" -name 'cacert.pem' -delete || die "Failed to delete bundled CA certificates"
70 +}