Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopenssl/
Date: Tue, 01 Aug 2017 18:52:46
Message-Id: 1501613482.4f86561c9cbb1afba615301b48d04946afa6d86b.dolsen@gentoo
1 commit: 4f86561c9cbb1afba615301b48d04946afa6d86b
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 1 18:30:02 2017 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 1 18:51:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f86561c
7
8 dev-python/pyopenssl: Version bump
9
10 Drop keywords due to changed deps
11 Drop pypy due to changed deps
12
13 Package-Manager: Portage-2.3.6, Repoman-2.3.1
14
15 dev-python/pyopenssl/Manifest | 1 +
16 dev-python/pyopenssl/pyopenssl-17.2.0.ebuild | 67 ++++++++++++++++++++++++++++
17 2 files changed, 68 insertions(+)
18
19 diff --git a/dev-python/pyopenssl/Manifest b/dev-python/pyopenssl/Manifest
20 index cfb1f749e67..80d23bd0d5b 100644
21 --- a/dev-python/pyopenssl/Manifest
22 +++ b/dev-python/pyopenssl/Manifest
23 @@ -1,3 +1,4 @@
24 DIST pyOpenSSL-0.15.1.tar.gz 149887 SHA256 f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672 SHA512 bd204f40c9583a8580cff28b061f02ea772fdda3965dab6ac9e3f8c3b98792bea87b6de76494f7ce81e1ddcc76019432a9ffa3bcd55c5adb063bb639efe62e51 WHIRLPOOL 34badbf11b49cb65019cb55da7c6d6a539971392741d14ea1408c56dc0564d52ffeb947d86549fed17762474d863d59a406cde86daa75a329bd5b6411a77702b
25 DIST pyOpenSSL-16.2.0.tar.gz 167305 SHA256 7779a3bbb74e79db234af6a08775568c6769b5821faecf6e2f4143edb227516e SHA512 c1b068137a492564fe958603712d401b7ee0def94c01a28be55f5c89e07c25684ecb0f465f3c56f35924bde038894f2914ac49539144845fb586d12b80307078 WHIRLPOOL 60f2fe38ba773ed52bcfe88da57bd78f2114d7018a6184ec1c0fa2a8ae6dab4cf2495cd2aa75d7a5b2beee49477dbb6b4256034cec83752db0a3c7e5f7c4debb
26 DIST pyOpenSSL-17.0.0.tar.gz 167121 SHA256 48abfe9d2bb8eb8d8947c8452b0223b7b1be2383b332f3b4f248fe59ef0bafdd SHA512 819be95f920a70b40ae48ed6740bd1d8cd3bf2fc080f682db8978946929994cb87ac467e220267dcdafc40aa7ed2cce51a334a49b06c1e2665d295157181ddad WHIRLPOOL 8256ad13d35d7c7d1678bd6c35140e13a1f601f149bc38633b3f04eaec7e302853abcb5df857a04fd04dc8ac3feeb35d4247dc979cee0969dafc538ec9b70d5c
27 +DIST pyOpenSSL-17.2.0.tar.gz 170816 SHA256 5d617ce36b07c51f330aa63b83bf7f25c40a0e95958876d54d1982f8c91b4834 SHA512 aef1628665353445760a0c869c5b88ba1f61a3ade7471bfd1ad9e57672573501574dab5a2491aaac1dc283893fcac1a81dd9b972f43d53fe7ef1aa48e3f0e88a WHIRLPOOL aab3617e825237032efa44d5b89603bcd6b33095f76bb04b53140138066d9c6e96b64bb6def4425b3cf3aa279691142c66bf5c6b9a89ef5e5c64eb83459dc5a9
28
29 diff --git a/dev-python/pyopenssl/pyopenssl-17.2.0.ebuild b/dev-python/pyopenssl/pyopenssl-17.2.0.ebuild
30 new file mode 100644
31 index 00000000000..eab5e33ab1c
32 --- /dev/null
33 +++ b/dev-python/pyopenssl/pyopenssl-17.2.0.ebuild
34 @@ -0,0 +1,67 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
41 +PYTHON_REQ_USE="threads(+)"
42 +
43 +inherit distutils-r1 flag-o-matic
44 +
45 +MY_PN=pyOpenSSL
46 +MY_P=${MY_PN}-${PV}
47 +
48 +DESCRIPTION="Python interface to the OpenSSL library"
49 +HOMEPAGE="
50 + http://pyopenssl.sourceforge.net/
51 + https://launchpad.net/pyopenssl
52 + https://pypi.python.org/pypi/pyOpenSSL
53 +"
54 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
55 +
56 +LICENSE="Apache-2.0"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~x86"
59 +IUSE="doc examples test"
60 +
61 +RDEPEND="
62 + >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
63 + >=dev-python/cryptography-1.9[${PYTHON_USEDEP}]"
64 +DEPEND="${RDEPEND}
65 + doc? (
66 + dev-python/sphinx[${PYTHON_USEDEP}]
67 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
68 + )
69 + test? (
70 + virtual/python-cffi[${PYTHON_USEDEP}]
71 + dev-python/flaky[${PYTHON_USEDEP}]
72 + dev-python/pretend[${PYTHON_USEDEP}]
73 + >=dev-python/pytest-3.0.1[${PYTHON_USEDEP}] )"
74 +
75 +S=${WORKDIR}/${MY_P}
76 +
77 +python_prepare_all() {
78 + # Requires network access
79 + sed -i -e 's/test_set_default_verify_paths/_&/' tests/test_ssl.py || die
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +python_compile_all() {
84 + use doc && emake -C doc html
85 +}
86 +
87 +python_test() {
88 + # FIXME: for some reason, no-ops on PyPy
89 + py.test -v || die "Testing failed with ${EPYTHON}"
90 +}
91 +
92 +python_install_all() {
93 + use doc && local HTML_DOCS=( doc/_build/html/. )
94 + if use examples ; then
95 + docinto examples
96 + dodoc -r examples/*
97 + docompress -x /usr/share/doc/${PF}/examples
98 + fi
99 +
100 + distutils-r1_python_install_all
101 +}