1 |
commit: 09ab7b754f61b12be27ca4493a140074f8c261bc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 01:52:50 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 01:52:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09ab7b75 |
7 |
|
8 |
dev-python/cryptography: add 37.0.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/cryptography/Manifest | 2 + |
13 |
dev-python/cryptography/cryptography-37.0.1.ebuild | 133 +++++++++++++++++++++ |
14 |
2 files changed, 135 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest |
17 |
index e4a9f125c803..0ef4b34669a6 100644 |
18 |
--- a/dev-python/cryptography/Manifest |
19 |
+++ b/dev-python/cryptography/Manifest |
20 |
@@ -9,8 +9,10 @@ DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b |
21 |
DIST chrono-0.4.19.crate 155663 BLAKE2B c92c273fb6475bbb2546dfb75eaa23321bc8f9a5fa8a7c652f527649b96ff8718fa932f52b500b02a4acae7837df5bdb14f69cb821d4962be2790dbd1d023a54 SHA512 a119349bfc2243a249f1d18b1ae548a04b30fecb75913a56f26d1ff8c0eb53097a2674d9141e2094018191cbbc1620843fbddaf52999824e077c1157f0907980 |
22 |
DIST cryptography-3.4.7.tar.gz 546893 BLAKE2B 49bc1e098ed1ba0181059b645f6668cda6332d196eaca55270ebce6e07e5bb6ab6724c5050fde20e89b7025773960d74ec782bb875badbbd5dc9a04db0a536f1 SHA512 3c4cf64bc0b067ccdbb71efe04c32ac9d673faea6cc4ccd13d6b1b61920be4785806d19359b7657d032a2ff1c011a8b4f16ec4924d9df8a59d1a875a7f844473 |
23 |
DIST cryptography-37.0.0.tar.gz 584360 BLAKE2B d2ff4e0185ea5ab8a5d3d3a1a9f67a87aeca6b01777c074b51bb936b4c7c8f8e46fd39c7ab6cb56d7a887c4fd83157a9fa650059aff51577c5d948fbe743e6d0 SHA512 bc73a4e73cdfdb0379535551c524dfcd06ee9d11f91bc4a8e8d725a9997b3468973c37b90d40f21237b9c66de78a13caf396a5bff8779c651f8a244704afc5a2 |
24 |
+DIST cryptography-37.0.1.tar.gz 585248 BLAKE2B c25d62110e49b52849856fa04fc62a72f7f57d8f7b6237e68a5aed4af5b770819440d0980ff0b3535dca076856a6c7bcf546ada705270bba9f41266d267f76f5 SHA512 751029ecfb911e70cd402f7bf1573ec6b4e1dd98bed27723e8c48e918cb417b2327af84f173dd21c986fe1d39a5721df38ccaa37f8b5ed569290c66c5e42f34a |
25 |
DIST cryptography_vectors-3.4.7.tar.gz 35168102 BLAKE2B fbefd3ff96548dde012fd290aba1c99d57db376023d486910e486cc9c143461ef1ae9b77824cc03307723d35142f0360bc961b548a4edc02357d3f1a0e7e4e9f SHA512 269b50fa4c5300da6758006d12be42f998630d23053ef9af0eb588fc9e6994b044d8822cff105e338f4d0d746ed0e204a4a9c42f54667e355e1ce86e6754bbe9 |
26 |
DIST cryptography_vectors-37.0.0.tar.gz 35240400 BLAKE2B 23d7e6212809a9e3269ae8f2d3714450032c774516e44f083a74ad6f0d500ce2500a20bf0f12b31abfc9ef774984a1d587019489743d2e04e983ae9842b66a1b SHA512 41f12f0593fe2c57f77bb76226d685c8bb0f7f8de0f0b32e0991d55571842f2639399d719855cc6800e29a85ec4f45a1b93a7b10d290ed66112f5b5d8ddc718c |
27 |
+DIST cryptography_vectors-37.0.1.tar.gz 35240482 BLAKE2B 031587f4ab33348c366654a4717f18bf8a252d428309a94807cf57f7fc39858dd3f33376ad1d5112e14023370ae3d39939e9f0bba54306a55c643c94b66f9a0f SHA512 ed34add6fd9821412bd03214d197693d66d7e0507c5d9a1ce888c020052776952f1e9f2f3e4c1437198aa77cf459cedf9366f4c56f518211c7e4611760b9558d |
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 |
DIST instant-0.1.12.crate 6128 BLAKE2B 728923f757c1ee4e4a7afb90e460eed81392068961240a538e5c6468e15a0b6491f590fb5f6cc46e6d78901ca232351f65abb9f2f230d8f4983c5e58c4011902 SHA512 fae494c00111c51c840f9dd6a10febe403e27ebb933dd16633a213e9c20f2bc11adeb431c71f8a6713bf88f270a010941e15d83df294e658791934f83a5d2407 |
31 |
|
32 |
diff --git a/dev-python/cryptography/cryptography-37.0.1.ebuild b/dev-python/cryptography/cryptography-37.0.1.ebuild |
33 |
new file mode 100644 |
34 |
index 000000000000..982405fb07d6 |
35 |
--- /dev/null |
36 |
+++ b/dev-python/cryptography/cryptography-37.0.1.ebuild |
37 |
@@ -0,0 +1,133 @@ |
38 |
+# Copyright 1999-2022 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_{8..10} pypy3 ) |
46 |
+PYTHON_REQ_USE="threads(+)" |
47 |
+ |
48 |
+CRATES=" |
49 |
+ Inflector-0.11.4 |
50 |
+ aliasable-0.1.3 |
51 |
+ asn1-0.8.7 |
52 |
+ asn1_derive-0.8.7 |
53 |
+ autocfg-1.1.0 |
54 |
+ base64-0.13.0 |
55 |
+ bitflags-1.3.2 |
56 |
+ cfg-if-1.0.0 |
57 |
+ chrono-0.4.19 |
58 |
+ indoc-0.3.6 |
59 |
+ indoc-impl-0.3.6 |
60 |
+ instant-0.1.12 |
61 |
+ lazy_static-1.4.0 |
62 |
+ libc-0.2.124 |
63 |
+ lock_api-0.4.7 |
64 |
+ num-integer-0.1.44 |
65 |
+ num-traits-0.2.14 |
66 |
+ once_cell-1.10.0 |
67 |
+ ouroboros-0.15.0 |
68 |
+ ouroboros_macro-0.15.0 |
69 |
+ parking_lot-0.11.2 |
70 |
+ parking_lot_core-0.8.5 |
71 |
+ paste-0.1.18 |
72 |
+ paste-impl-0.1.18 |
73 |
+ pem-1.0.2 |
74 |
+ proc-macro-error-1.0.4 |
75 |
+ proc-macro-error-attr-1.0.4 |
76 |
+ proc-macro-hack-0.5.19 |
77 |
+ proc-macro2-1.0.37 |
78 |
+ pyo3-0.15.2 |
79 |
+ pyo3-build-config-0.15.2 |
80 |
+ pyo3-macros-0.15.2 |
81 |
+ pyo3-macros-backend-0.15.2 |
82 |
+ quote-1.0.18 |
83 |
+ redox_syscall-0.2.13 |
84 |
+ scopeguard-1.1.0 |
85 |
+ smallvec-1.8.0 |
86 |
+ stable_deref_trait-1.2.0 |
87 |
+ syn-1.0.91 |
88 |
+ unicode-xid-0.2.2 |
89 |
+ unindent-0.1.8 |
90 |
+ version_check-0.9.4 |
91 |
+ winapi-0.3.9 |
92 |
+ winapi-i686-pc-windows-gnu-0.4.0 |
93 |
+ winapi-x86_64-pc-windows-gnu-0.4.0 |
94 |
+" |
95 |
+ |
96 |
+inherit cargo distutils-r1 multiprocessing |
97 |
+ |
98 |
+VEC_P=cryptography_vectors-$(ver_cut 1-3) |
99 |
+DESCRIPTION="Library providing cryptographic recipes and primitives" |
100 |
+HOMEPAGE=" |
101 |
+ https://github.com/pyca/cryptography/ |
102 |
+ https://pypi.org/project/cryptography/ |
103 |
+" |
104 |
+SRC_URI=" |
105 |
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
106 |
+ $(cargo_crate_uris ${CRATES}) |
107 |
+ test? ( |
108 |
+ mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz |
109 |
+ ) |
110 |
+" |
111 |
+ |
112 |
+# extra licenses come from Rust deps |
113 |
+LICENSE="Apache-2.0 BSD BSD-2 MIT" |
114 |
+SLOT="0" |
115 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
116 |
+ |
117 |
+RDEPEND=" |
118 |
+ >=dev-libs/openssl-1.0.2o-r6:0= |
119 |
+" |
120 |
+DEPEND=" |
121 |
+ ${RDEPEND} |
122 |
+ $(python_gen_cond_dep ' |
123 |
+ >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] |
124 |
+ ' 'python*') |
125 |
+" |
126 |
+BDEPEND=" |
127 |
+ dev-python/setuptools-rust[${PYTHON_USEDEP}] |
128 |
+ test? ( |
129 |
+ >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}] |
130 |
+ dev-python/iso8601[${PYTHON_USEDEP}] |
131 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
132 |
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
133 |
+ dev-python/pytest-subtests[${PYTHON_USEDEP}] |
134 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
135 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
136 |
+ ) |
137 |
+" |
138 |
+ |
139 |
+# Files built without CFLAGS/LDFLAGS, acceptable for rust |
140 |
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/cryptography/hazmat/bindings/_rust.*.so" |
141 |
+ |
142 |
+distutils_enable_tests pytest |
143 |
+ |
144 |
+src_unpack() { |
145 |
+ cargo_src_unpack |
146 |
+} |
147 |
+ |
148 |
+src_prepare() { |
149 |
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die |
150 |
+ |
151 |
+ default |
152 |
+ |
153 |
+ # work around availability macros not supported in GCC (yet) |
154 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
155 |
+ local darwinok=0 |
156 |
+ if [[ ${CHOST##*-darwin} -ge 16 ]] ; then |
157 |
+ darwinok=1 |
158 |
+ fi |
159 |
+ sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \ |
160 |
+ src/_cffi_src/openssl/src/osrandom_engine.c || die |
161 |
+ fi |
162 |
+} |
163 |
+ |
164 |
+python_test() { |
165 |
+ local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}" |
166 |
+ local EPYTEST_IGNORE=( |
167 |
+ tests/bench |
168 |
+ ) |
169 |
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
170 |
+} |