1 |
commit: 6a5e5d730fef35b5eb195dc15014c8729610356d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 06:12:56 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 27 07:00:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a5e5d73 |
7 |
|
8 |
dev-python/cryptography: Bump to 3.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cryptography/Manifest | 2 + |
13 |
dev-python/cryptography/cryptography-3.1.ebuild | 60 +++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest |
17 |
index 32467c404a1..4710f482667 100644 |
18 |
--- a/dev-python/cryptography/Manifest |
19 |
+++ b/dev-python/cryptography/Manifest |
20 |
@@ -1,4 +1,6 @@ |
21 |
DIST cryptography-2.9.tar.gz 517211 BLAKE2B 3889812dadce01f09c509f5bcdf26405fd1cd2de7064cdbf0f68338894cf65dfe0c6a607867db614b35ad11da4546af2371cf59836dbbbd3037db84241cf71ec SHA512 7db2846b901e42ddc4caa9851235e5a0894ef702d4c4692eb60fcae17bc4e7833782a8001679ea41b78f9273d7d68a4b85810248590e12ca33cfade3208e2849 |
22 |
DIST cryptography-3.0.tar.gz 534725 BLAKE2B f6f4d5cfcf42a9ca2288bdc7c61bd0ae2f98999868951798f358d6ec9dbbcddb31102b0954f983bb9c118df53a8483e74aa2395ce366a9a97b6b9164b0044bd2 SHA512 4fca5d0e59f02f23c7e2d5c80f86e4cf36eeeb9a128e7b3332a91aa0b9dcdd3282a882a88ea34ffba1e91687eb6d1fc1042774f1e30970e9bf56ee701c32ac15 |
23 |
+DIST cryptography-3.1.tar.gz 534747 BLAKE2B 3225625a69ef3279ae7f763e04b884c0d46a0524624685bba1836e8076d13a7a360ed75f69e62427e191eff86fd9882bd09a5352492ea8bd558842ca67bf3b70 SHA512 c015df3a71e4c274b2fb8fd954d264c8b56443644048139113f548c69cf83798b73c9f0993609f338044df92b609723b0281ce61ed2751309a122de22060037e |
24 |
DIST cryptography_vectors-2.9.tar.gz 35140661 BLAKE2B 870245659f6a64566f823116d8b4ba017981eb41148e9dcde9cac372eb6703a7b4580040b487cd8773160d5bd989fa9d5bb1788ac550b28e76bde8c9f6cd56c7 SHA512 025ed48855f182b926e3eeb5dca1033eb7f43c419bd6ea71accfed38b4d9ef4cbbf5af60bc28a39e3d6723de2d4091bd226e30c0e572a2e0d43a95a12c1bb7a2 |
25 |
DIST cryptography_vectors-3.0.tar.gz 35156155 BLAKE2B 987fa88873bb3ec9745a150906e868c1aea14bb9e618c5c65348deb4e8618f89b15a8d70ea6ed0760649505f5649dd2fbf1e40fadad193faf3a92922ed234025 SHA512 a24c6f25c0acf79cea534fc86d61d9697c004a18204043457cf1a955751e8313893c63258f82ada523a9608b7ec0e5a7a7047ddcbd20e0c55d7c6392bc61c24f |
26 |
+DIST cryptography_vectors-3.1.tar.gz 35163687 BLAKE2B c381781950bf5399c15fe329fc28cf35933936a2130bbf18909f31f1bbd764a69a8816327e968d3810790b8404e3ae5af25b3d390da3015533f5c52f8a0cd0cf SHA512 094076a26ba4cae1bf0408844abbb9b3a5634f97657e4627e10b8a7c7424b69574fd9d719d5c258aa02244bee8b395f09c51af79350971072b2f9719446743c1 |
27 |
|
28 |
diff --git a/dev-python/cryptography/cryptography-3.1.ebuild b/dev-python/cryptography/cryptography-3.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..c2571ae2705 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/cryptography/cryptography-3.1.ebuild |
33 |
@@ -0,0 +1,60 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) |
40 |
+PYTHON_REQ_USE="threads(+)" |
41 |
+ |
42 |
+inherit distutils-r1 flag-o-matic |
43 |
+ |
44 |
+VEC_P=cryptography_vectors-${PV} |
45 |
+DESCRIPTION="Library providing cryptographic recipes and primitives" |
46 |
+HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
48 |
+ test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" |
49 |
+ |
50 |
+LICENSE="|| ( Apache-2.0 BSD )" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
53 |
+IUSE="libressl idna test" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+# the openssl 1.0.2l-r1 needs to be updated again :( |
57 |
+# It'd theb be able to go into the || section again |
58 |
+#=dev-libs/openssl-1.0.2l-r1:0 |
59 |
+# the following is the original section, disallowing bindist entirely |
60 |
+#!libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist(-)] ) |
61 |
+RDEPEND=" |
62 |
+ !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) |
63 |
+ libressl? ( >=dev-libs/libressl-2.9.1:0= ) |
64 |
+ idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] ) |
65 |
+ >=dev-python/six-1.4.1[${PYTHON_USEDEP}] |
66 |
+ $(python_gen_cond_dep ' |
67 |
+ dev-python/enum34[${PYTHON_USEDEP}] |
68 |
+ dev-python/ipaddress[${PYTHON_USEDEP}] |
69 |
+ ' -2) |
70 |
+ $(python_gen_cond_dep ' |
71 |
+ >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] |
72 |
+ ' 'python*') |
73 |
+ " |
74 |
+BDEPEND="${RDEPEND} |
75 |
+ test? ( |
76 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
77 |
+ dev-python/iso8601[${PYTHON_USEDEP}] |
78 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}] |
80 |
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
81 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
82 |
+ )" |
83 |
+ |
84 |
+DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) |
85 |
+ |
86 |
+python_configure_all() { |
87 |
+ append-cflags $(test-flags-CC -pthread) |
88 |
+} |
89 |
+ |
90 |
+python_test() { |
91 |
+ local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} |
92 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
93 |
+} |