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: Fri, 03 Mar 2023 05:53:21
Message-Id: 1677822782.d52d18b475b1a67bccd2880cba458c473a83ee4b.mgorny@gentoo
1 commit: d52d18b475b1a67bccd2880cba458c473a83ee4b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 04:58:30 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 05:53:02 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52d18b4
7
8 dev-python/cryptography: Bump to 39.0.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cryptography/Manifest | 2 +
13 dev-python/cryptography/cryptography-39.0.2.ebuild | 154 +++++++++++++++++++++
14 2 files changed, 156 insertions(+)
15
16 diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
17 index 9c150841933a..e6dfb42dbfef 100644
18 --- a/dev-python/cryptography/Manifest
19 +++ b/dev-python/cryptography/Manifest
20 @@ -18,8 +18,10 @@ DIST codespan-reporting-0.11.1.crate 48963 BLAKE2B 39deb717a853ffbe3585e20a67fd7
21 DIST core-foundation-sys-0.8.3.crate 17519 BLAKE2B 4ac3d9ab16753dd995abe82f158d460d0d22184ab55d260e73b20305cffe4e03427dabfe0c8be968b6c3ecd348be2e17154ded7c9bbd5a95334ff266fe83bbf7 SHA512 a3ba3184cef65dafe8318c4db7e59eb2749dcde7b2370ad20272b0735ded0032daf2de3fd0cf55eb48448a335f5b81e8e745f2a647f9a43bb85946ce714bfd82
22 DIST cryptography-38.0.4.tar.gz 599786 BLAKE2B cd6ef7e671dfdf36a5b9ee253307bf069e4c87d5a3a0110cff70f50c17cbe99997d7c9e78678b26a59e7f781076c53934be1d37c52605953c06913cbe2faa3cc SHA512 2dcf3cb8208a5905b930482ce87ac56b77fda0eb02387492f0d6be9df67dc5967c93ec9a2127f83dbea1a9a3d39f1adc98497b020ad654d4afdeb67d2323afa9
23 DIST cryptography-39.0.1.tar.gz 603634 BLAKE2B 20247ec0fd933b8541712169feced6247ad6fd708af78b06c4bb633631a2160473a818a3c5e545243f3dea3b254ae63055b05e226eb8e1348413b5a883236ded SHA512 a7df2cc73309b6902a2743273e41c7bec8e0dd0c8160b24edf6554089ca8d160cde7d9007cf45751cb52823c2a6f4a3c437a447292f6e8c06db547d519e98b94
24 +DIST cryptography-39.0.2.tar.gz 604277 BLAKE2B 3b70b13b85b05709c5aac5fd429c592a1af45022027adb9fc797c938928bdb47169136ab7dac3ec47544ee901a95f0fe5b8c913b4a7fa948b0fd40b9ca90a9a6 SHA512 10184814f262f2d5f505abf4dcb73eb0de59aadca2e228b2bacf6e03eb124efdc9504e752976fcb58f2ee673dc84230180873c28b85cd18e1831ab3c44022c01
25 DIST cryptography_vectors-38.0.4.tar.gz 35273825 BLAKE2B 8bd39caeaa6c1d90320def07e4855995d15cfcf7a422b7491765efc5e88ddbfcfea5c27ed52a48c1ae10f041d8129ef40720fb7b45b26e576230596fcc23f4e1 SHA512 04972f13ff0217e1d8827381fafeb5071f3009d34378e60805ef1f05fefd850a0904a60caef4fc95ce396de01925a3e42443db174508627ed010ef839e97c644
26 DIST cryptography_vectors-39.0.1.tar.gz 35275870 BLAKE2B 28e064e0f42ebb7b7af6db65bd506d4047d1087b63199eedaadd346c218b0cd24a16c8b97fc39b3325224026bfd4b2214bb53a5564495acab1297067a52e0649 SHA512 b06585c4ed1fc360165a8801509507a0a546da42cbca80703a173aa55d34f1f9790fc2763c7aef274f479248c57a2e86a56bc098ffb49532cb59132c139eb8af
27 +DIST cryptography_vectors-39.0.2.tar.gz 35275866 BLAKE2B f2b7d969f53ed571041de77016a679ac1b71baa980ec081c5ebc2cb756c373cab7035152a166b875a74afd450f7622f0e526e1563f4c6b02c16508933dd6bd52 SHA512 aff9842ac92be1815e34de0a61e65c7693667047db40ed67234a2a35eb8d91e6fea3ccf2e820d72ed57cebf03f00ba0a53f22710a0cc9d625f4596d8ee172109
28 DIST cxx-1.0.85.crate 589916 BLAKE2B 3be165b6d8c5ccaa7e5ec3d456c1bc2aeb95e2dc7890feb1ebeb2d25b2887b1b023afdccda08862a13928a8f379200c46fcaf88ecc111d9dbb3bbc5dde63f88d SHA512 bf9386f58ea007bcc7171af713e944459a6b219ddbe88813f16df5e274ab85418be23dd7bdaee7964108e9a4a1698365de67362d5504c80bee726f1151166f5c
29 DIST cxx-build-1.0.85.crate 84820 BLAKE2B 6dd01e251776f33cbb11b4ef6a9d77db7c476e6184f942d0a5fca5505c5fc2463bc03edcf8f08597238898b92df1c53ba330e9c3b4e63a106136445fcf202584 SHA512 3ef75dc28bed9c1c9cea5dbd7b396f8e88a5fe288e19d1aa1f96add32830236b2414fe33ed7b06566759298cf0130d6b82d2049ba9bf362c95413ce8481f2bf2
30 DIST cxxbridge-flags-1.0.85.crate 5635 BLAKE2B 5d365e5a6e2ef5bdde5f223f5ab726e0667aedcecdc2a2f1ec961d9c199c291dfcf94ed4ca6a2ea9056073c8519839cad7d5b49f7c8022bf96b96186f19874a2 SHA512 186a08d40469bfc8fcf801bd766e89e72d160a7b28ce465b3e8a39b4f38d7c17bc373e9bd8f5e50c758be7755ac450d532aa88c7c20d908c3905106bd8cac05c
31
32 diff --git a/dev-python/cryptography/cryptography-39.0.2.ebuild b/dev-python/cryptography/cryptography-39.0.2.ebuild
33 new file mode 100644
34 index 000000000000..b5f36d2fb324
35 --- /dev/null
36 +++ b/dev-python/cryptography/cryptography-39.0.2.ebuild
37 @@ -0,0 +1,154 @@
38 +# Copyright 1999-2023 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +CARGO_OPTIONAL=yes
44 +DISTUTILS_USE_PEP517=setuptools
45 +PYTHON_COMPAT=( python3_{9..11} pypy3 )
46 +PYTHON_REQ_USE="threads(+)"
47 +
48 +CRATES="
49 + Inflector-0.11.4
50 + aliasable-0.1.3
51 + android_system_properties-0.1.5
52 + asn1-0.13.0
53 + asn1_derive-0.13.0
54 + autocfg-1.1.0
55 + base64-0.13.1
56 + bitflags-1.3.2
57 + bumpalo-3.10.0
58 + cc-1.0.78
59 + cfg-if-1.0.0
60 + chrono-0.4.23
61 + codespan-reporting-0.11.1
62 + core-foundation-sys-0.8.3
63 + cxx-1.0.85
64 + cxx-build-1.0.85
65 + cxxbridge-flags-1.0.85
66 + cxxbridge-macro-1.0.85
67 + iana-time-zone-0.1.53
68 + iana-time-zone-haiku-0.1.1
69 + indoc-0.3.6
70 + indoc-impl-0.3.6
71 + instant-0.1.12
72 + js-sys-0.3.60
73 + libc-0.2.139
74 + link-cplusplus-1.0.8
75 + lock_api-0.4.9
76 + log-0.4.17
77 + num-integer-0.1.45
78 + num-traits-0.2.15
79 + once_cell-1.14.0
80 + ouroboros-0.15.5
81 + ouroboros_macro-0.15.5
82 + parking_lot-0.11.2
83 + parking_lot_core-0.8.6
84 + paste-0.1.18
85 + paste-impl-0.1.18
86 + pem-1.1.0
87 + proc-macro-error-1.0.4
88 + proc-macro-error-attr-1.0.4
89 + proc-macro-hack-0.5.20+deprecated
90 + proc-macro2-1.0.49
91 + pyo3-0.15.2
92 + pyo3-build-config-0.15.2
93 + pyo3-macros-0.15.2
94 + pyo3-macros-backend-0.15.2
95 + quote-1.0.23
96 + redox_syscall-0.2.16
97 + scopeguard-1.1.0
98 + scratch-1.0.3
99 + smallvec-1.10.0
100 + syn-1.0.107
101 + termcolor-1.1.3
102 + unicode-ident-1.0.6
103 + unicode-width-0.1.10
104 + unindent-0.1.11
105 + version_check-0.9.4
106 + wasm-bindgen-0.2.83
107 + wasm-bindgen-backend-0.2.83
108 + wasm-bindgen-macro-0.2.83
109 + wasm-bindgen-macro-support-0.2.83
110 + wasm-bindgen-shared-0.2.83
111 + winapi-0.3.9
112 + winapi-i686-pc-windows-gnu-0.4.0
113 + winapi-util-0.1.5
114 + winapi-x86_64-pc-windows-gnu-0.4.0
115 +"
116 +
117 +inherit cargo distutils-r1 multiprocessing pypi
118 +
119 +VEC_P=cryptography_vectors-$(ver_cut 1-3)
120 +DESCRIPTION="Library providing cryptographic recipes and primitives"
121 +HOMEPAGE="
122 + https://github.com/pyca/cryptography/
123 + https://pypi.org/project/cryptography/
124 +"
125 +SRC_URI+="
126 + $(cargo_crate_uris ${CRATES})
127 + test? (
128 + $(pypi_sdist_url cryptography_vectors "$(ver_cut 1-3)")
129 + )
130 +"
131 +
132 +LICENSE="|| ( Apache-2.0 BSD ) PSF-2"
133 +# Dependent crate licenses
134 +LICENSE+=" Apache-2.0 BSD-2 BSD MIT Unicode-DFS-2016"
135 +SLOT="0"
136 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
137 +
138 +RDEPEND="
139 + >=dev-libs/openssl-1.0.2o-r6:0=
140 + $(python_gen_cond_dep '
141 + >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]
142 + ' 'python*')
143 +"
144 +DEPEND="
145 + ${RDEPEND}
146 +"
147 +BDEPEND="
148 + dev-python/setuptools-rust[${PYTHON_USEDEP}]
149 + test? (
150 + >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}]
151 + dev-python/iso8601[${PYTHON_USEDEP}]
152 + dev-python/pretend[${PYTHON_USEDEP}]
153 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
154 + dev-python/pytest-subtests[${PYTHON_USEDEP}]
155 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
156 + dev-python/pytz[${PYTHON_USEDEP}]
157 + )
158 +"
159 +
160 +# Files built without CFLAGS/LDFLAGS, acceptable for rust
161 +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/cryptography/hazmat/bindings/_rust.*.so"
162 +
163 +distutils_enable_tests pytest
164 +
165 +src_unpack() {
166 + cargo_src_unpack
167 +}
168 +
169 +src_prepare() {
170 + sed -i -e 's:--benchmark-disable::' pyproject.toml || die
171 +
172 + default
173 +
174 + # work around availability macros not supported in GCC (yet)
175 + if [[ ${CHOST} == *-darwin* ]] ; then
176 + local darwinok=0
177 + if [[ ${CHOST##*-darwin} -ge 16 ]] ; then
178 + darwinok=1
179 + fi
180 + sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \
181 + src/_cffi_src/openssl/src/osrandom_engine.c || die
182 + fi
183 +}
184 +
185 +python_test() {
186 + local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}"
187 + local EPYTEST_IGNORE=(
188 + tests/bench
189 + )
190 + epytest -n "$(makeopts_jobs)"
191 +}