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/, dev-python/cryptography-vectors/
Date: Wed, 01 Aug 2018 17:52:11
Message-Id: 1533144917.3f9ba7fc9d66809b602189bbd2650eac8d86d91a.prometheanfire@gentoo
1 commit: 3f9ba7fc9d66809b602189bbd2650eac8d86d91a
2 Author: Oz Tiram <oz.tiram <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 1 08:51:05 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 1 17:35:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f9ba7fc
7
8 dev-python/cryptography: bump version to 2.3
9
10 libressl is now supported upstream, removing patches
11
12 Bug: https://bugs.gentoo.org/662564
13 Package-Manager: Portage-2.3.40, Repoman-2.3.9
14 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
15
16 dev-python/cryptography-vectors/Manifest | 1 +
17 .../cryptography-vectors-2.3.ebuild | 25 ++++++++
18 dev-python/cryptography/Manifest | 1 +
19 dev-python/cryptography/cryptography-2.3.ebuild | 67 ++++++++++++++++++++++
20 4 files changed, 94 insertions(+)
21
22 diff --git a/dev-python/cryptography-vectors/Manifest b/dev-python/cryptography-vectors/Manifest
23 index 3d90c045a47..a77d313827d 100644
24 --- a/dev-python/cryptography-vectors/Manifest
25 +++ b/dev-python/cryptography-vectors/Manifest
26 @@ -2,3 +2,4 @@ DIST cryptography_vectors-1.7.1.tar.gz 26652514 BLAKE2B 5aa670b4d52b010964465091
27 DIST cryptography_vectors-2.0.2.tar.gz 27011827 BLAKE2B eda02ca72a4a6a608050c531fc649a9843a9b7083a0a7a726ac89201f37016e258538671b15d4197deaffdb6902c345ff40e1da604e2b6034148d9c204b0ab1d SHA512 ab14bdf664e6df08c8436eb24c4465d3080aacd4e6cb47a0113b0877f869cd91d4184ad9122a428b323e91316b686eeb167c4e932773cac1e7b2adbc9309ca36
28 DIST cryptography_vectors-2.1.4.tar.gz 27255711 BLAKE2B 6c842b6366d794e9986110479e2175996b344aa191345c85a5cec8c0640b7a67b157f310eca31ac8e6487739357b11a2b86b9832fc680318e754c4751414c754 SHA512 74c2c1e3924f848488a3b5abdabda1a0089ae7d070b94e65f9fa2bf2da057ad27a37e46f90de4f2c3e9f1cc96c1c179cb5dbf0f50d5166a02846923e3bceb165
29 DIST cryptography_vectors-2.2.2.tar.gz 27270814 BLAKE2B b57cfd402e85e34a1e52d034ef51699ba9ab7381e5baa28f0f062ecc8d6b7b5849ac4d5426c41768e1a4fb9462f84d7e22476ec64dc0bd0142a799caaf95eafb SHA512 bdaf53c8087d6c44fcd3ab54069d1d45b60ee80d98fd813fe180b9e88272203b5dd2abd5fa6dcd3b4ce9ec3215997fd8e99e63309e2f0ac619a6f72d552afff9
30 +DIST cryptography_vectors-2.3.tar.gz 35303908 BLAKE2B 694f5a741ddedce2101632dcf165961d4706feaa5c8482235f5afb69f4257bfb4f8a9b8423213661de0da2d56ebf43cc7ba138a4bbf9462f367ebd5adf2620f7 SHA512 7c51b0c29c182c4da3265824a1b6e44c943bd41dfa89199cded963d0182a8ade678a560ec9ea13f6e8918119fcacf1c90d804cc90368e51cc5d430228448231c
31
32 diff --git a/dev-python/cryptography-vectors/cryptography-vectors-2.3.ebuild b/dev-python/cryptography-vectors/cryptography-vectors-2.3.ebuild
33 new file mode 100644
34 index 00000000000..6c1b08319c7
35 --- /dev/null
36 +++ b/dev-python/cryptography-vectors/cryptography-vectors-2.3.ebuild
37 @@ -0,0 +1,25 @@
38 +# Copyright 1999-2018 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +
43 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
44 +
45 +inherit distutils-r1
46 +
47 +MY_PN=${PN/-/_}
48 +MY_P=${MY_PN}-${PV}
49 +
50 +DESCRIPTION="Test vectors for the cryptography package"
51 +HOMEPAGE="https://pypi.org/project/cryptography-vectors/"
52 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
53 +
54 +LICENSE="|| ( Apache-2.0 BSD )"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
57 +IUSE=""
58 +
59 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
60 +RDEPEND=""
61 +
62 +S=${WORKDIR}/${MY_P}
63
64 diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
65 index 032127fab86..179000c042e 100644
66 --- a/dev-python/cryptography/Manifest
67 +++ b/dev-python/cryptography/Manifest
68 @@ -2,3 +2,4 @@ DIST cryptography-1.7.1.tar.gz 420673 BLAKE2B 8c0257187f29173bae610f191f6ae3251e
69 DIST cryptography-2.0.2.tar.gz 427303 BLAKE2B 53f891c02aa4b82b13a66a4c74bd6db9e8dcdb57bd0bba76648e0c1be710ce1d94c8425ead6d81b240b39c034125ce320757d4b43c56bc7410af11f171cf9a21 SHA512 a71219ff52006a7c8bf1553d0f132c747566c630281ef89aac40c65b193b1f0074fc9cda1de7057c76b452113dfb6188c83baef3ed9c05ff18adbc8b7bba646b
70 DIST cryptography-2.1.4.tar.gz 441557 BLAKE2B 66aa07930ee54469328977e27096e65b7a333b38b71828c71cb7891b489ef7af60f5e5590f67b43d5e63dc2279d9ca1ba036879f3145264f7639d65000958b50 SHA512 f749cb4384badc174a842514e5a4fee2ed01ab9c716799d8d9d5301f6d2d97b6c41deb9e425f48928b639fa34bef8c05529ed7e5b777ef5ca75c244f8fda8fd4
71 DIST cryptography-2.2.2.tar.gz 443822 BLAKE2B d0fbaad78d172f1ba1bfa6edd64d2d5a0eac0853a564fdbb9830dfedc5c53fe1b28d8c1878be85ce38b8cd90a0c2e40e6a209158693a88a7053a80f0481e6302 SHA512 6c1b19cdb870d65abad42523697e9a0bebc7a0025b34f10c4bdd30c313333efd7c41bcb4237a29b3a1b270e3fbade75ccb35df172b055b7c075d619f4d9424c9
72 +DIST cryptography-2.3.tar.gz 449464 BLAKE2B 7485c745f9c6512a5efce42181970deff19bd4420e91230d84b070cd77450a6805c56a2e37cda73b45c90ed969c8fdbb866a7cc9e53a6828a1ca6e45befd9de8 SHA512 75e14020da500fdbbd578f004b22ef3237844185329adf59288b29f1b3ee9dd2005a2c4a933fe8609a59d168012a9f687bab0f31ab39ed6ca325198aa9295e52
73
74 diff --git a/dev-python/cryptography/cryptography-2.3.ebuild b/dev-python/cryptography/cryptography-2.3.ebuild
75 new file mode 100644
76 index 00000000000..b86ee83bd1e
77 --- /dev/null
78 +++ b/dev-python/cryptography/cryptography-2.3.ebuild
79 @@ -0,0 +1,67 @@
80 +# Copyright 1999-2018 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +
83 +EAPI=6
84 +
85 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
86 +PYTHON_REQ_USE="threads(+)"
87 +
88 +inherit distutils-r1 flag-o-matic
89 +
90 +DESCRIPTION="Library providing cryptographic recipes and primitives"
91 +HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/"
92 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
93 +
94 +LICENSE="|| ( Apache-2.0 BSD )"
95 +SLOT="0"
96 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
97 +IUSE="libressl test"
98 +
99 +# the openssl 1.0.2l-r1 needs to be updated again :(
100 +# It'd theb be able to go into the || section again
101 +#=dev-libs/openssl-1.0.2l-r1:0
102 +# the following is the original section, disallowing bindist entirely
103 +#!libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist(-)] )
104 +RDEPEND="
105 + !libressl? (
106 + dev-libs/openssl:0= (
107 + || (
108 + dev-libs/openssl:0[-bindist(-)]
109 + >=dev-libs/openssl-1.0.2o-r2:0
110 + )
111 + )
112 + )
113 + libressl? ( dev-libs/libressl:0= )
114 + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 pypy{,3})
115 + >=dev-python/idna-2.1[${PYTHON_USEDEP}]
116 + >=dev-python/asn1crypto-0.21.0[${PYTHON_USEDEP}]
117 + dev-python/setuptools[${PYTHON_USEDEP}]
118 + >=dev-python/six-1.4.1[${PYTHON_USEDEP}]
119 + virtual/python-ipaddress[${PYTHON_USEDEP}]
120 + "
121 +DEPEND="${RDEPEND}
122 + >=dev-python/setuptools-1.0[${PYTHON_USEDEP}]
123 + $(python_gen_cond_dep '>=dev-python/cffi-1.7:=[${PYTHON_USEDEP}]' 'python*')
124 + $(python_gen_cond_dep '!~dev-python/cffi-1.11.3:=[${PYTHON_USEDEP}]' 'python*')
125 + test? (
126 + ~dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}]
127 + dev-python/hypothesis[${PYTHON_USEDEP}]
128 + dev-python/iso8601[${PYTHON_USEDEP}]
129 + dev-python/pretend[${PYTHON_USEDEP}]
130 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
131 + >=dev-python/pytest-2.9.0[${PYTHON_USEDEP}]
132 + dev-python/pytz[${PYTHON_USEDEP}]
133 + )"
134 +
135 +DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
136 +
137 +PATCHES=(
138 +)
139 +
140 +python_configure_all() {
141 + append-cflags $(test-flags-CC -pthread)
142 +}
143 +
144 +python_test() {
145 + py.test -v -v -x || die "Tests fail with ${EPYTHON}"
146 +}