1 |
commit: fda1f18aadd193086d284f723ef278b11098e373 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 05:35:22 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 06:05:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fda1f18a |
7 |
|
8 |
dev-python/cryptography: Bump to 38.0.4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cryptography/Manifest | 2 + |
13 |
dev-python/cryptography/cryptography-38.0.4.ebuild | 143 +++++++++++++++++++++ |
14 |
2 files changed, 145 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest |
17 |
index d17d1e4cf943..dbb26d92f0d3 100644 |
18 |
--- a/dev-python/cryptography/Manifest |
19 |
+++ b/dev-python/cryptography/Manifest |
20 |
@@ -11,7 +11,9 @@ DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b |
21 |
DIST chrono-0.4.22.crate 185570 BLAKE2B 10dfae2fe871a9910bf885b78aaf3e9ed1bcb87a40962d781c8ea407a945b837c665c2bb4e3d0562ac63d9e7bd5012804434642ee6f5c80e22bc816d4331f1b0 SHA512 de856679ec16afe035176b22125a00ced532d49c8babac0a88fa5f6e4a3d9e526a34ee8bf51639653fc313a5703a202b1be013aa16fdd72a505151d7aafa7c44 |
22 |
DIST core-foundation-sys-0.8.3.crate 17519 BLAKE2B 4ac3d9ab16753dd995abe82f158d460d0d22184ab55d260e73b20305cffe4e03427dabfe0c8be968b6c3ecd348be2e17154ded7c9bbd5a95334ff266fe83bbf7 SHA512 a3ba3184cef65dafe8318c4db7e59eb2749dcde7b2370ad20272b0735ded0032daf2de3fd0cf55eb48448a335f5b81e8e745f2a647f9a43bb85946ce714bfd82 |
23 |
DIST cryptography-38.0.3.tar.gz 599876 BLAKE2B 84a296a3fae42e465d6fb79f86e22527ddf3e8702bc34d9d77942db20572236b4f5a525cea7b82000c9aa46af1f9ff345e1e4188b6658e929b2d8b7e6027d768 SHA512 f133d83266f386cb0169a3cf2226d258b7d599e7aaad9913f8a4b01ee0841670586a21cee93fb4d4d9f61b0da53109c5dbcf7d91d470cfbb166aa04f4a1d7634 |
24 |
+DIST cryptography-38.0.4.tar.gz 599786 BLAKE2B cd6ef7e671dfdf36a5b9ee253307bf069e4c87d5a3a0110cff70f50c17cbe99997d7c9e78678b26a59e7f781076c53934be1d37c52605953c06913cbe2faa3cc SHA512 2dcf3cb8208a5905b930482ce87ac56b77fda0eb02387492f0d6be9df67dc5967c93ec9a2127f83dbea1a9a3d39f1adc98497b020ad654d4afdeb67d2323afa9 |
25 |
DIST cryptography_vectors-38.0.3.tar.gz 35273999 BLAKE2B cd7deeb1979e060a27a300d23bff527b35405a7879c6f884299afe1f253407d46061fd7817ffcd7e03a2560197cffdc0a0b6f20dfc93e52c5759cc5328438138 SHA512 3155dc396298daccdeb24e7f86131f32818eb6264110540c2639c205e57b99bc3ffd12cc9eace337e0215042734c1318e83fc8f7b1adbe20b47b8192abd618b7 |
26 |
+DIST cryptography_vectors-38.0.4.tar.gz 35273825 BLAKE2B 8bd39caeaa6c1d90320def07e4855995d15cfcf7a422b7491765efc5e88ddbfcfea5c27ed52a48c1ae10f041d8129ef40720fb7b45b26e576230596fcc23f4e1 SHA512 04972f13ff0217e1d8827381fafeb5071f3009d34378e60805ef1f05fefd850a0904a60caef4fc95ce396de01925a3e42443db174508627ed010ef839e97c644 |
27 |
DIST iana-time-zone-0.1.47.crate 16974 BLAKE2B 841e380fd81def3eb5af424215c36caa9b48adf2368d9da57dd562ea4f806fc5ed1abd0c118eebb532264eb3ab5d8670049cfe20eada40cad7bef4718245c968 SHA512 c1817555149f05ae45f7e54046b79c732f80f5af382680d626dd3e970167092cdc176b259941d3c1533518bef511a92ed24c3aa538897e9d082984684d99f55b |
28 |
DIST indoc-0.3.6.crate 9663 BLAKE2B ca7a1f4d3cbedbee0ba0a3f19c4b3352ff90927eef744b7e4f1d60855d4dc4265202972e81e0fc06d1222d8d5fb322efc4ef669af7396b251248a1e45c91def2 SHA512 e900aa3b001df0fdbf1f543d8b679af317e85a1f95e26fc556213f2826a4f6c82d8c4f3f82de435e3591f8bc14e78eb22668d901dcbe2287f46740e0291afacd |
29 |
DIST indoc-impl-0.3.6.crate 7933 BLAKE2B 93e232e360e8f02943ef9a9cabf16bc863d792d8096b8d9a13a07f0b7b396db590abf83b5444f082317059dad7578ffae974dbc8a7e56fbdbab817b7d2534725 SHA512 18406587ee56a09dd2062cee456af697efa903343de42c0ff618a64ddf2bf7efed5da02e7220fed2636c555a6ae18059018f5c3c9b44ba8d3e5a34ea5b53c806 |
30 |
|
31 |
diff --git a/dev-python/cryptography/cryptography-38.0.4.ebuild b/dev-python/cryptography/cryptography-38.0.4.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..3f47e9fd6976 |
34 |
--- /dev/null |
35 |
+++ b/dev-python/cryptography/cryptography-38.0.4.ebuild |
36 |
@@ -0,0 +1,143 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+CARGO_OPTIONAL=yes |
43 |
+DISTUTILS_USE_PEP517=setuptools |
44 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
45 |
+PYTHON_REQ_USE="threads(+)" |
46 |
+ |
47 |
+CRATES=" |
48 |
+ Inflector-0.11.4 |
49 |
+ aliasable-0.1.3 |
50 |
+ android_system_properties-0.1.5 |
51 |
+ asn1-0.12.2 |
52 |
+ asn1_derive-0.12.2 |
53 |
+ autocfg-1.1.0 |
54 |
+ base64-0.13.0 |
55 |
+ bitflags-1.3.2 |
56 |
+ bumpalo-3.10.0 |
57 |
+ cfg-if-1.0.0 |
58 |
+ chrono-0.4.22 |
59 |
+ core-foundation-sys-0.8.3 |
60 |
+ iana-time-zone-0.1.47 |
61 |
+ indoc-0.3.6 |
62 |
+ indoc-impl-0.3.6 |
63 |
+ instant-0.1.12 |
64 |
+ js-sys-0.3.59 |
65 |
+ libc-0.2.132 |
66 |
+ lock_api-0.4.8 |
67 |
+ log-0.4.17 |
68 |
+ num-integer-0.1.45 |
69 |
+ num-traits-0.2.15 |
70 |
+ once_cell-1.14.0 |
71 |
+ ouroboros-0.15.4 |
72 |
+ ouroboros_macro-0.15.4 |
73 |
+ parking_lot-0.11.2 |
74 |
+ parking_lot_core-0.8.5 |
75 |
+ paste-0.1.18 |
76 |
+ paste-impl-0.1.18 |
77 |
+ pem-1.1.0 |
78 |
+ proc-macro-error-1.0.4 |
79 |
+ proc-macro-error-attr-1.0.4 |
80 |
+ proc-macro-hack-0.5.19 |
81 |
+ proc-macro2-1.0.43 |
82 |
+ pyo3-0.15.2 |
83 |
+ pyo3-build-config-0.15.2 |
84 |
+ pyo3-macros-0.15.2 |
85 |
+ pyo3-macros-backend-0.15.2 |
86 |
+ quote-1.0.21 |
87 |
+ redox_syscall-0.2.16 |
88 |
+ scopeguard-1.1.0 |
89 |
+ smallvec-1.9.0 |
90 |
+ syn-1.0.99 |
91 |
+ unicode-ident-1.0.3 |
92 |
+ unindent-0.1.10 |
93 |
+ version_check-0.9.4 |
94 |
+ wasm-bindgen-0.2.82 |
95 |
+ wasm-bindgen-backend-0.2.82 |
96 |
+ wasm-bindgen-macro-0.2.82 |
97 |
+ wasm-bindgen-macro-support-0.2.82 |
98 |
+ wasm-bindgen-shared-0.2.82 |
99 |
+ winapi-0.3.9 |
100 |
+ winapi-i686-pc-windows-gnu-0.4.0 |
101 |
+ winapi-x86_64-pc-windows-gnu-0.4.0 |
102 |
+" |
103 |
+ |
104 |
+inherit cargo distutils-r1 multiprocessing |
105 |
+ |
106 |
+VEC_P=cryptography_vectors-$(ver_cut 1-3) |
107 |
+DESCRIPTION="Library providing cryptographic recipes and primitives" |
108 |
+HOMEPAGE=" |
109 |
+ https://github.com/pyca/cryptography/ |
110 |
+ https://pypi.org/project/cryptography/ |
111 |
+" |
112 |
+SRC_URI=" |
113 |
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
114 |
+ $(cargo_crate_uris ${CRATES}) |
115 |
+ test? ( |
116 |
+ mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz |
117 |
+ ) |
118 |
+" |
119 |
+ |
120 |
+LICENSE="|| ( Apache-2.0 BSD )" |
121 |
+# Dependent crate licenses |
122 |
+LICENSE+=" Apache-2.0 BSD-2 BSD MIT Unicode-DFS-2016" |
123 |
+SLOT="0" |
124 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
125 |
+ |
126 |
+RDEPEND=" |
127 |
+ >=dev-libs/openssl-1.0.2o-r6:0= |
128 |
+ $(python_gen_cond_dep ' |
129 |
+ >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] |
130 |
+ ' 'python*') |
131 |
+" |
132 |
+DEPEND=" |
133 |
+ ${RDEPEND} |
134 |
+" |
135 |
+BDEPEND=" |
136 |
+ dev-python/setuptools-rust[${PYTHON_USEDEP}] |
137 |
+ test? ( |
138 |
+ >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}] |
139 |
+ dev-python/iso8601[${PYTHON_USEDEP}] |
140 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
141 |
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
142 |
+ dev-python/pytest-subtests[${PYTHON_USEDEP}] |
143 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
144 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
145 |
+ ) |
146 |
+" |
147 |
+ |
148 |
+# Files built without CFLAGS/LDFLAGS, acceptable for rust |
149 |
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/cryptography/hazmat/bindings/_rust.*.so" |
150 |
+ |
151 |
+distutils_enable_tests pytest |
152 |
+ |
153 |
+src_unpack() { |
154 |
+ cargo_src_unpack |
155 |
+} |
156 |
+ |
157 |
+src_prepare() { |
158 |
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die |
159 |
+ |
160 |
+ default |
161 |
+ |
162 |
+ # work around availability macros not supported in GCC (yet) |
163 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
164 |
+ local darwinok=0 |
165 |
+ if [[ ${CHOST##*-darwin} -ge 16 ]] ; then |
166 |
+ darwinok=1 |
167 |
+ fi |
168 |
+ sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \ |
169 |
+ src/_cffi_src/openssl/src/osrandom_engine.c || die |
170 |
+ fi |
171 |
+} |
172 |
+ |
173 |
+python_test() { |
174 |
+ local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}" |
175 |
+ local EPYTEST_IGNORE=( |
176 |
+ tests/bench |
177 |
+ ) |
178 |
+ epytest -n "$(makeopts_jobs)" |
179 |
+} |