1 |
commit: c6ef36b4b6618727a3d62eb8d11d043f0c4b7543 |
2 |
Author: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 17:15:29 2015 +0000 |
4 |
Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 17:35:00 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6ef36b4 |
7 |
|
8 |
dev-python/cryptography: add libressl support |
9 |
|
10 |
.../cryptography/cryptography-1.0.1-r1.ebuild | 46 ++++++++++++++++++++++ |
11 |
1 file changed, 46 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/cryptography/cryptography-1.0.1-r1.ebuild b/dev-python/cryptography/cryptography-1.0.1-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..65f533d |
16 |
--- /dev/null |
17 |
+++ b/dev-python/cryptography/cryptography-1.0.1-r1.ebuild |
18 |
@@ -0,0 +1,46 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+ |
25 |
+# only works with >=pypy-2.6 |
26 |
+PYTHON_COMPAT=( python2_7 python3_{3,4} pypy ) |
27 |
+ |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Library providing cryptographic recipes and primitives" |
31 |
+HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/" |
32 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="|| ( Apache-2.0 BSD )" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
37 |
+IUSE="libressl test" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ !libressl? ( dev-libs/openssl:0 ) |
41 |
+ libressl? ( dev-libs/libressl ) |
42 |
+ $(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]' 'python*') |
43 |
+ $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3 pypy) |
44 |
+ >=dev-python/idna-2.0[${PYTHON_USEDEP}] |
45 |
+ $(python_gen_cond_dep 'dev-python/ipaddress[${PYTHON_USEDEP}]' python2_7 pypy) |
46 |
+ >=dev-python/pyasn1-0.1.8[${PYTHON_USEDEP}] |
47 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/six-1.4.1[${PYTHON_USEDEP}] |
49 |
+ $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy ) |
50 |
+ " |
51 |
+DEPEND="${RDEPEND} |
52 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
53 |
+ test? ( |
54 |
+ ~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}] |
55 |
+ dev-python/iso8601[${PYTHON_USEDEP}] |
56 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}] |
58 |
+ )" |
59 |
+ |
60 |
+DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) |
61 |
+ |
62 |
+python_test() { |
63 |
+ py.test -v || die "Tests fail with ${EPYTHON}" |
64 |
+} |