Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopenssl/
Date: Mon, 19 Feb 2018 00:54:35
Message-Id: 1519001644.bbd43706e570192f2d9af3fb05a128e3bd1d2a7a.prometheanfire@gentoo
1 commit: bbd43706e570192f2d9af3fb05a128e3bd1d2a7a
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 18 23:56:42 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 19 00:54:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbd43706
7
8 dev-python/pyopenssl: 17.5.0 bup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-python/pyopenssl/Manifest | 1 +
13 dev-python/pyopenssl/pyopenssl-17.5.0.ebuild | 66 ++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/pyopenssl/Manifest b/dev-python/pyopenssl/Manifest
17 index 9e343464a73..0879dca1b7d 100644
18 --- a/dev-python/pyopenssl/Manifest
19 +++ b/dev-python/pyopenssl/Manifest
20 @@ -2,3 +2,4 @@ DIST pyOpenSSL-16.2.0.tar.gz 167305 BLAKE2B c6daa906695b57cd48153ad6e86ac1ca24f5
21 DIST pyOpenSSL-17.0.0.tar.gz 167121 BLAKE2B d3aa8713ecba18c6018e83b4da2de46ec8a0bb7bd24fa0b069c32f4ea75fde8aa371b9fa90625e536ea64cb9ee9c349d3c129988cdf495de8389707198248e43 SHA512 819be95f920a70b40ae48ed6740bd1d8cd3bf2fc080f682db8978946929994cb87ac467e220267dcdafc40aa7ed2cce51a334a49b06c1e2665d295157181ddad
22 DIST pyOpenSSL-17.2.0.tar.gz 170816 BLAKE2B 10abfa61ff329d23c99897c58a02a487c28d19ce7c5d312bd5c769473aea40d846c3b036d34d674e008d155e2be88e26190f19a890ee375893a08ecafe6afaf5 SHA512 aef1628665353445760a0c869c5b88ba1f61a3ade7471bfd1ad9e57672573501574dab5a2491aaac1dc283893fcac1a81dd9b972f43d53fe7ef1aa48e3f0e88a
23 DIST pyOpenSSL-17.4.0.tar.gz 169362 BLAKE2B 87a51efaa157b4a91a48edfcd9348402b6734e1c9f78e7ed638e3d245ae3922083c625e3d967e7513c588e131f96b06f110ae528cccbbb820f685afb9dda72ef SHA512 c3c791b15f2245d3c1381f84471f9e1b07b4a01c318a5a4012ec70193ba055fe948ba150f9c88d2dabe30b37f2025fe26ffb95c01682ca656d561014d41cf965
24 +DIST pyOpenSSL-17.5.0.tar.gz 170870 BLAKE2B e8b8986a7c5475ac3898df4877a8be86db359af79e1718bad85149440cff543c501ee23eb369270d2c539a9e3f4e13165ea87b858ef6916ee79ca6e49f6e5370 SHA512 f194662b5842f1e3a4fcb910b9f2e6482d1dcdf834f306acc3dd6d9723f65038f7bff550248fa6268d90c839c9d9e8248bb6c7d399495fe6aed25291b93ece86
25
26 diff --git a/dev-python/pyopenssl/pyopenssl-17.5.0.ebuild b/dev-python/pyopenssl/pyopenssl-17.5.0.ebuild
27 new file mode 100644
28 index 00000000000..c064b7937ad
29 --- /dev/null
30 +++ b/dev-python/pyopenssl/pyopenssl-17.5.0.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit distutils-r1 flag-o-matic
41 +
42 +MY_PN=pyOpenSSL
43 +MY_P=${MY_PN}-${PV}
44 +
45 +DESCRIPTION="Python interface to the OpenSSL library"
46 +HOMEPAGE="
47 + http://pyopenssl.sourceforge.net/
48 + https://launchpad.net/pyopenssl
49 + https://pypi.python.org/pypi/pyOpenSSL
50 +"
51 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
52 +
53 +LICENSE="Apache-2.0"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86"
56 +IUSE="doc examples test"
57 +
58 +RDEPEND="
59 + >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
60 + >=dev-python/cryptography-2.1.4[${PYTHON_USEDEP}]"
61 +DEPEND="${RDEPEND}
62 + doc? (
63 + dev-python/sphinx[${PYTHON_USEDEP}]
64 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
65 + )
66 + test? (
67 + virtual/python-cffi[${PYTHON_USEDEP}]
68 + dev-python/flaky[${PYTHON_USEDEP}]
69 + dev-python/pretend[${PYTHON_USEDEP}]
70 + >=dev-python/pytest-3.0.1[${PYTHON_USEDEP}] )"
71 +
72 +S=${WORKDIR}/${MY_P}
73 +
74 +python_prepare_all() {
75 + # Requires network access
76 + sed -i -e 's/test_set_default_verify_paths/_&/' tests/test_ssl.py || die
77 + distutils-r1_python_prepare_all
78 +}
79 +
80 +python_compile_all() {
81 + use doc && emake -C doc html
82 +}
83 +
84 +python_test() {
85 + TZ=UTC py.test -v || die "Testing failed with ${EPYTHON}" # Fixes bug #627530
86 +}
87 +
88 +python_install_all() {
89 + use doc && local HTML_DOCS=( doc/_build/html/. )
90 + if use examples ; then
91 + docinto examples
92 + dodoc -r examples/*
93 + docompress -x /usr/share/doc/${PF}/examples
94 + fi
95 +
96 + distutils-r1_python_install_all
97 +}