Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/
Date: Mon, 08 Feb 2021 08:44:09
Message-Id: 1612773838.3e9c31001936aa8fd4c721e30f18bd38a34f75e2.mgorny@gentoo
1 commit: 3e9c31001936aa8fd4c721e30f18bd38a34f75e2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 8 08:26:09 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 8 08:43:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9c3100
7
8 dev-python/cryptography: Bump to 3.3.2 (secfix)
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.3.2.ebuild | 67 +++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
17 index 7315e52b65c..dcde2927e9d 100644
18 --- a/dev-python/cryptography/Manifest
19 +++ b/dev-python/cryptography/Manifest
20 @@ -1,4 +1,6 @@
21 DIST cryptography-3.2.1.tar.gz 540994 BLAKE2B 667f09ac81423ecdc84c8646f0d02ee3a2955f55d35623e59c07696810a93c47332f7f8d877918eeeb6581d8e02bde3b70aae8e9d32be7ffbc8011e5e7e382a9 SHA512 e3f1806693c24aadc3ef0df374ce1845760e87ad7c243226b75e80820b50bdc0760e4bb5f6ce26d62a6d23736b3109f72cd30b52ae2a36b26ec5656ec96c6175
22 DIST cryptography-3.3.1.tar.gz 539756 BLAKE2B a3eb52d756565ae83d9f2e06045be1d3439a2464b633a9a168101796a448d7c7531e8247862f7996d04500347d32dcebf6b1352e9c9f2e4f0d8008d4bbd000dc SHA512 62192fe0fd3bb8844ccc0056ab72a42b038db2a4ecb0928543c520b85e1de93066dab0d604acf23d37395d68172b9618f81c6022a59ec49725bc1862096d15d1
23 +DIST cryptography-3.3.2.tar.gz 539883 BLAKE2B e35de90362b24170c4025f67914e60c16fbf37fce6bcd5d6f3fe32e5a9bb60de8edbebcb1ff0450fabc9c244d4b1a4618c720b630f28c747fea17e9bf008f01f SHA512 55f6ee13342b3209b1fcb310f4c4d33d22856ee785cb2347e6ad36c34e9b42f6e0d5bece8e458b09663a5b78e34c4567fe7a211b51ca71f55ccc93e3f62dc5e4
24 DIST cryptography_vectors-3.2.1.tar.gz 35168164 BLAKE2B 77af3be0dbd7393da7cd59600086041b78fe20339018a637fc1cf3600c7cd08cf2e565c79ccb47f4719a4b0f01cf2ab2db00c025805443b333dd7fdf3aa835a7 SHA512 44ff756a6ece9700f7657f8ba92417e95bf273cf500f1dab2141de5b2af6e61840d65c37b766abd752c76025ead1550bfc7b7340ce5774c75fd0bb8ac768cdd8
25 DIST cryptography_vectors-3.3.1.tar.gz 35168171 BLAKE2B 72cf5d79773a728c16847e3e62f8ce444526c051d7562467446d3e59c66064568fdfcbfb1fd35419fd79079ff9a02a2f3a97f870f7adef6cc9a0fd23b4edf514 SHA512 a102535bd3cf72118106ca7268d5a9921738d41f81247940c550961d61cb0d1869095b7891c39e8dc15816f7d38230622846747b4b7a3f226f09306cf86220bd
26 +DIST cryptography_vectors-3.3.2.tar.gz 35168168 BLAKE2B 3991a16556ae5be0d153cfe302dd9a860918a80bd0bdef7104f3c170ba63941c4b1ff74750bc12329422a6061161cb6452bea60e191d85c0d79e0852566c6c0b SHA512 18590adb96a6f04b8a41d4346b126b8adfc854cbcec85f8c1c0a23b1b363f215b37da60ea94a481b8fd7752f07fba515b08fc18faf2e29fb858e133129971f7c
27
28 diff --git a/dev-python/cryptography/cryptography-3.3.2.ebuild b/dev-python/cryptography/cryptography-3.3.2.ebuild
29 new file mode 100644
30 index 00000000000..3eba1c50b6f
31 --- /dev/null
32 +++ b/dev-python/cryptography/cryptography-3.3.2.ebuild
33 @@ -0,0 +1,67 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{7..9} pypy3 )
40 +PYTHON_REQ_USE="threads(+)"
41 +
42 +inherit distutils-r1 multiprocessing
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 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
53 +IUSE="libressl idna"
54 +
55 +RDEPEND="
56 + >=dev-python/six-1.4.1[${PYTHON_USEDEP}]
57 + idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] )
58 + $(python_gen_cond_dep '
59 + >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]
60 + ' 'python*')
61 + "
62 +BDEPEND="
63 + test? (
64 + >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}]
65 + dev-python/iso8601[${PYTHON_USEDEP}]
66 + dev-python/pretend[${PYTHON_USEDEP}]
67 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
68 + dev-python/pytz[${PYTHON_USEDEP}]
69 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
70 + )"
71 +
72 +distutils_enable_tests pytest
73 +
74 +DEPEND="
75 + !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= )
76 + libressl? ( >=dev-libs/libressl-2.9.1:0= )
77 + "
78 +RDEPEND+=${DEPEND}
79 +
80 +DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
81 +
82 +src_prepare() {
83 + default
84 +
85 + # work around availability macros not supported in GCC (yet)
86 + if [[ ${CHOST} == *-darwin* ]] ; then
87 + local darwinok=0
88 + if [[ ${CHOST##*-darwin} -ge 16 ]] ; then
89 + darwinok=1
90 + fi
91 + sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \
92 + src/_cffi_src/openssl/src/osrandom_engine.c || die
93 + fi
94 +}
95 +
96 +python_test() {
97 + local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P}
98 + pytest -vv -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
99 + die "Tests fail with ${EPYTHON}"
100 +}