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/cryptography/
Date: Tue, 31 Oct 2017 19:54:07
Message-Id: 1509479623.24265b72e10774512312e02a5ba4669b61ecfc6f.prometheanfire@gentoo
1 commit: 24265b72e10774512312e02a5ba4669b61ecfc6f
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 31 19:52:42 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 31 19:53:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24265b72
7
8 dev-python/cryptography: allow the new ecc enabled openssl (got around patents) bug 531540
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.4
11
12 .../cryptography/cryptography-2.1.2-r1.ebuild | 53 ++++++++++++++++++++++
13 1 file changed, 53 insertions(+)
14
15 diff --git a/dev-python/cryptography/cryptography-2.1.2-r1.ebuild b/dev-python/cryptography/cryptography-2.1.2-r1.ebuild
16 new file mode 100644
17 index 00000000000..70a0e57999b
18 --- /dev/null
19 +++ b/dev-python/cryptography/cryptography-2.1.2-r1.ebuild
20 @@ -0,0 +1,53 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
27 +PYTHON_REQ_USE="threads(+)"
28 +
29 +inherit distutils-r1 flag-o-matic
30 +
31 +DESCRIPTION="Library providing cryptographic recipes and primitives"
32 +HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="|| ( Apache-2.0 BSD )"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x64-solaris"
38 +IUSE="libressl test"
39 +
40 +RDEPEND="
41 + !libressl? ( dev-libs/openssl:0= ( || ( dev-libs/openssl:0[-bindist(-)]
42 + =dev-libs/openssl-1.0.2l-r1:0
43 + =dev-libs/openssl-1.1.0f-r1:0 ) ) )
44 + libressl? ( dev-libs/libressl )
45 + $(python_gen_cond_dep '>=dev-python/cffi-1.7:=[${PYTHON_USEDEP}]' 'python*')
46 + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 pypy{,3})
47 + >=dev-python/idna-2.1[${PYTHON_USEDEP}]
48 + >=dev-python/asn1crypto-0.21.0[${PYTHON_USEDEP}]
49 + dev-python/setuptools[${PYTHON_USEDEP}]
50 + >=dev-python/six-1.4.1[${PYTHON_USEDEP}]
51 + virtual/python-ipaddress[${PYTHON_USEDEP}]
52 + "
53 +DEPEND="${RDEPEND}
54 + >=dev-python/setuptools-1.0[${PYTHON_USEDEP}]
55 + test? (
56 + ~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}]
57 + dev-python/hypothesis[${PYTHON_USEDEP}]
58 + dev-python/iso8601[${PYTHON_USEDEP}]
59 + dev-python/pretend[${PYTHON_USEDEP}]
60 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
61 + >=dev-python/pytest-2.9.0[${PYTHON_USEDEP}]
62 + dev-python/pytz[${PYTHON_USEDEP}]
63 + )"
64 +
65 +DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
66 +
67 +python_configure_all() {
68 + append-cflags $(test-flags-CC -pthread)
69 +}
70 +
71 +python_test() {
72 + py.test -v -v -x || die "Tests fail with ${EPYTHON}"
73 +}