summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-25 06:22:33 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-25 07:39:40 +0100
commitc7ce73528d6f8278e23b9e1f7e16dbc6d7f40bea (patch)
treef5d0c8f16b018df08ffe73f654be0aec1dfc407e
parentdev-python/dask: Bump to 2023.3.2 (diff)
downloadgentoo-c7ce7352.tar.gz
gentoo-c7ce7352.tar.bz2
gentoo-c7ce7352.zip
dev-python/cryptography: Bump to 40.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/cryptography/Manifest2
-rw-r--r--dev-python/cryptography/cryptography-40.0.1.ebuild170
2 files changed, 172 insertions, 0 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
index c6df3d3b4879..38fd35ae648f 100644
--- a/dev-python/cryptography/Manifest
+++ b/dev-python/cryptography/Manifest
@@ -22,10 +22,12 @@ DIST cryptography-38.0.4.tar.gz 599786 BLAKE2B cd6ef7e671dfdf36a5b9ee253307bf069
DIST cryptography-39.0.1.tar.gz 603634 BLAKE2B 20247ec0fd933b8541712169feced6247ad6fd708af78b06c4bb633631a2160473a818a3c5e545243f3dea3b254ae63055b05e226eb8e1348413b5a883236ded SHA512 a7df2cc73309b6902a2743273e41c7bec8e0dd0c8160b24edf6554089ca8d160cde7d9007cf45751cb52823c2a6f4a3c437a447292f6e8c06db547d519e98b94
DIST cryptography-39.0.2.tar.gz 604277 BLAKE2B 3b70b13b85b05709c5aac5fd429c592a1af45022027adb9fc797c938928bdb47169136ab7dac3ec47544ee901a95f0fe5b8c913b4a7fa948b0fd40b9ca90a9a6 SHA512 10184814f262f2d5f505abf4dcb73eb0de59aadca2e228b2bacf6e03eb124efdc9504e752976fcb58f2ee673dc84230180873c28b85cd18e1831ab3c44022c01
DIST cryptography-40.0.0.tar.gz 624969 BLAKE2B a335f887f235173330e102c8abc94dcc6d35f6cd81ad3d9c2d61de9509dc1aca9445d80f68a617594ab161eeb79920e6457192feaf17c97ea0a894fb562dd21c SHA512 3bb475192db523af850cac623079e211442e9139b461ca928365fdd355069cb97f01541a5529c5f20ce88b1367d3b1ca3afb0742f6ba452a458212b1d3c41c76
+DIST cryptography-40.0.1.tar.gz 624978 BLAKE2B 92009020e178319e646eb5da3b3e9e5da12dd21330232611c9f66d4a5fae7a397b4c23e3119d9eb524f6d618163ac4e53415fb25e1d053c53b52ed26a433f84b SHA512 489f1d75fe3fab360d3ed5ca92efd2ce2ffde145810571a84414421d463a1d53af1bffd2c91cd0ca72237cf9072c59723219086af296fd15704ca557e76c5dee
DIST cryptography_vectors-38.0.4.tar.gz 35273825 BLAKE2B 8bd39caeaa6c1d90320def07e4855995d15cfcf7a422b7491765efc5e88ddbfcfea5c27ed52a48c1ae10f041d8129ef40720fb7b45b26e576230596fcc23f4e1 SHA512 04972f13ff0217e1d8827381fafeb5071f3009d34378e60805ef1f05fefd850a0904a60caef4fc95ce396de01925a3e42443db174508627ed010ef839e97c644
DIST cryptography_vectors-39.0.1.tar.gz 35275870 BLAKE2B 28e064e0f42ebb7b7af6db65bd506d4047d1087b63199eedaadd346c218b0cd24a16c8b97fc39b3325224026bfd4b2214bb53a5564495acab1297067a52e0649 SHA512 b06585c4ed1fc360165a8801509507a0a546da42cbca80703a173aa55d34f1f9790fc2763c7aef274f479248c57a2e86a56bc098ffb49532cb59132c139eb8af
DIST cryptography_vectors-39.0.2.tar.gz 35275866 BLAKE2B f2b7d969f53ed571041de77016a679ac1b71baa980ec081c5ebc2cb756c373cab7035152a166b875a74afd450f7622f0e526e1563f4c6b02c16508933dd6bd52 SHA512 aff9842ac92be1815e34de0a61e65c7693667047db40ed67234a2a35eb8d91e6fea3ccf2e820d72ed57cebf03f00ba0a53f22710a0cc9d625f4596d8ee172109
DIST cryptography_vectors-40.0.0.tar.gz 35282045 BLAKE2B c15f07e88320071c406f6e959aef1b7ebee24bd862918d54b6a0db52e9fe16edd163423ae7d948bde4b9a68e61a08d543a5ad2d55982006a7349d980e8dd59ea SHA512 fe7304b98f86060ed54adc105b690f4886c6a2c3e6c61861273a7ec10690b87dba9a526d6cd423710043d5fe2c8035d8395e2c513721ef0987ea33cad9b0f797
+DIST cryptography_vectors-40.0.1.tar.gz 35282086 BLAKE2B 890f90913bb06e8d4d6011862cded54c98b85eafd1118bf43300aff8f301bcff314a77e129a43979455cc0dd8da97f7572da79941e0b72ec1ef0efc4971f178e SHA512 5908390f5d89fdea925753b8d2889ea7a26c3c27c5157dc7e1d43ed12dbc422812abe1cc8927167570dde4fb1df88cc5bc632fc2674463e74f6420aa086ae84f
DIST cxx-1.0.85.crate 589916 BLAKE2B 3be165b6d8c5ccaa7e5ec3d456c1bc2aeb95e2dc7890feb1ebeb2d25b2887b1b023afdccda08862a13928a8f379200c46fcaf88ecc111d9dbb3bbc5dde63f88d SHA512 bf9386f58ea007bcc7171af713e944459a6b219ddbe88813f16df5e274ab85418be23dd7bdaee7964108e9a4a1698365de67362d5504c80bee726f1151166f5c
DIST cxx-1.0.86.crate 589122 BLAKE2B 22a18d62d7e2a4793b659d1ec330c7e5068715560f5a098946f1a59e8c76243cbfbcea42d5a9e68e81ea9f26949ab9d12997d7594832e8b670caa07f220d6087 SHA512 927fbc7ab0eae8c4a87c974ae0cf5a34dd291ca869f1476bb23cc7afca25e131f5f0417a3b901d424d25c870f2fc9bee5500169074ce3a040e08340c3a526e09
DIST cxx-build-1.0.85.crate 84820 BLAKE2B 6dd01e251776f33cbb11b4ef6a9d77db7c476e6184f942d0a5fca5505c5fc2463bc03edcf8f08597238898b92df1c53ba330e9c3b4e63a106136445fcf202584 SHA512 3ef75dc28bed9c1c9cea5dbd7b396f8e88a5fe288e19d1aa1f96add32830236b2414fe33ed7b06566759298cf0130d6b82d2049ba9bf362c95413ce8481f2bf2
diff --git a/dev-python/cryptography/cryptography-40.0.1.ebuild b/dev-python/cryptography/cryptography-40.0.1.ebuild
new file mode 100644
index 000000000000..669fd8f3ec2b
--- /dev/null
+++ b/dev-python/cryptography/cryptography-40.0.1.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CARGO_OPTIONAL=yes
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+PYTHON_REQ_USE="threads(+)"
+
+CRATES="
+ Inflector-0.11.4
+ aliasable-0.1.3
+ android_system_properties-0.1.5
+ asn1-0.13.0
+ asn1_derive-0.13.0
+ autocfg-1.1.0
+ base64-0.13.1
+ bitflags-1.3.2
+ bumpalo-3.10.0
+ cc-1.0.79
+ cfg-if-1.0.0
+ chrono-0.4.24
+ codespan-reporting-0.11.1
+ core-foundation-sys-0.8.3
+ cxx-1.0.86
+ cxx-build-1.0.86
+ cxxbridge-flags-1.0.86
+ cxxbridge-macro-1.0.86
+ foreign-types-0.3.2
+ foreign-types-shared-0.1.1
+ iana-time-zone-0.1.54
+ iana-time-zone-haiku-0.1.1
+ indoc-0.3.6
+ indoc-impl-0.3.6
+ instant-0.1.12
+ js-sys-0.3.61
+ libc-0.2.140
+ link-cplusplus-1.0.8
+ lock_api-0.4.9
+ log-0.4.17
+ num-integer-0.1.45
+ num-traits-0.2.15
+ once_cell-1.14.0
+ openssl-0.10.48
+ openssl-macros-0.1.0
+ openssl-sys-0.9.83
+ ouroboros-0.15.6
+ ouroboros_macro-0.15.6
+ parking_lot-0.11.2
+ parking_lot_core-0.8.6
+ paste-0.1.18
+ paste-impl-0.1.18
+ pem-1.1.1
+ pkg-config-0.3.26
+ proc-macro-error-1.0.4
+ proc-macro-error-attr-1.0.4
+ proc-macro-hack-0.5.20+deprecated
+ proc-macro2-1.0.53
+ pyo3-0.15.2
+ pyo3-build-config-0.15.2
+ pyo3-macros-0.15.2
+ pyo3-macros-backend-0.15.2
+ quote-1.0.26
+ redox_syscall-0.2.16
+ scopeguard-1.1.0
+ scratch-1.0.5
+ smallvec-1.10.0
+ syn-1.0.109
+ termcolor-1.2.0
+ unicode-ident-1.0.8
+ unicode-width-0.1.10
+ unindent-0.1.11
+ vcpkg-0.2.15
+ version_check-0.9.4
+ wasm-bindgen-0.2.84
+ wasm-bindgen-backend-0.2.84
+ wasm-bindgen-macro-0.2.84
+ wasm-bindgen-macro-support-0.2.84
+ wasm-bindgen-shared-0.2.84
+ winapi-0.3.9
+ winapi-i686-pc-windows-gnu-0.4.0
+ winapi-util-0.1.5
+ winapi-x86_64-pc-windows-gnu-0.4.0
+ windows-0.46.0
+ windows-targets-0.42.2
+ windows_aarch64_gnullvm-0.42.2
+ windows_aarch64_msvc-0.42.2
+ windows_i686_gnu-0.42.2
+ windows_i686_msvc-0.42.2
+ windows_x86_64_gnu-0.42.2
+ windows_x86_64_gnullvm-0.42.2
+ windows_x86_64_msvc-0.42.2
+"
+
+inherit cargo distutils-r1 multiprocessing pypi
+
+VEC_P=cryptography_vectors-$(ver_cut 1-3)
+DESCRIPTION="Library providing cryptographic recipes and primitives"
+HOMEPAGE="
+ https://github.com/pyca/cryptography/
+ https://pypi.org/project/cryptography/
+"
+SRC_URI+="
+ $(cargo_crate_uris ${CRATES})
+ test? (
+ $(pypi_sdist_url cryptography_vectors "$(ver_cut 1-3)")
+ )
+"
+
+LICENSE="|| ( Apache-2.0 BSD ) PSF-2"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD-2 BSD MIT Unicode-DFS-2016"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-libs/openssl-1.0.2o-r6:0=
+ $(python_gen_cond_dep '
+ >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]
+ ' 'python*')
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-python/setuptools-rust[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}]
+ dev-python/iso8601[${PYTHON_USEDEP}]
+ dev-python/pretend[${PYTHON_USEDEP}]
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}]
+ dev-python/pytest-subtests[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ )
+"
+
+# Files built without CFLAGS/LDFLAGS, acceptable for rust
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/cryptography/hazmat/bindings/_rust.*.so"
+
+distutils_enable_tests pytest
+
+src_unpack() {
+ cargo_src_unpack
+}
+
+src_prepare() {
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die
+
+ default
+
+ # work around availability macros not supported in GCC (yet)
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ local darwinok=0
+ if [[ ${CHOST##*-darwin} -ge 16 ]] ; then
+ darwinok=1
+ fi
+ sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \
+ src/_cffi_src/openssl/src/osrandom_engine.c || die
+ fi
+}
+
+python_test() {
+ local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}"
+ local EPYTEST_IGNORE=(
+ tests/bench
+ )
+ epytest -n "$(makeopts_jobs)"
+}