summaryrefslogtreecommitdiff
path: root/dev-python/cryptography
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-12 13:40:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-12 13:40:16 +0100
commitb4ef58ede68341d0e00d761505857e965e2b4231 (patch)
tree94723f8dfd3de9243bf2ae39d9deb2ee78c9719f /dev-python/cryptography
parent9f3ff9d79a788d420003387392ec40fd0548efae (diff)
gentoo auto-resync : 12:10:2022 - 13:40:16
Diffstat (limited to 'dev-python/cryptography')
-rw-r--r--dev-python/cryptography/Manifest3
-rw-r--r--dev-python/cryptography/cryptography-38.0.2.ebuild142
2 files changed, 145 insertions, 0 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
index 74c26af752db..436162cde2b6 100644
--- a/dev-python/cryptography/Manifest
+++ b/dev-python/cryptography/Manifest
@@ -15,8 +15,10 @@ DIST chrono-0.4.22.crate 185570 BLAKE2B 10dfae2fe871a9910bf885b78aaf3e9ed1bcb87a
DIST core-foundation-sys-0.8.3.crate 17519 BLAKE2B 4ac3d9ab16753dd995abe82f158d460d0d22184ab55d260e73b20305cffe4e03427dabfe0c8be968b6c3ecd348be2e17154ded7c9bbd5a95334ff266fe83bbf7 SHA512 a3ba3184cef65dafe8318c4db7e59eb2749dcde7b2370ad20272b0735ded0032daf2de3fd0cf55eb48448a335f5b81e8e745f2a647f9a43bb85946ce714bfd82
DIST cryptography-37.0.4.tar.gz 585913 BLAKE2B 3ed76d5cec1dd75ab89e9cae1357eda82b23017406cd84d97ab70d6b598cb3c453e34ea013d35b5a482f032b8513c0245d4273c2201313f42be54e404fa2b598 SHA512 9d39a2ec4facffd6d1c1db9267248846071aca8ac3bccba3da2d1a0664c6ce2a38c5245a9b8f62845a83abe6ba2782c43333aa4260960f37dc2eac3789a73575
DIST cryptography-38.0.1.tar.gz 599412 BLAKE2B 40e17d43b72c35e77fab27efb66762e1d8002f9ba419220de68eb5ce957a31410cca821a40494e0963cc590a4e0c01c70e4076009022056a26d08d22ce859664 SHA512 a0e9eb645888a74e01377c0ed79427d066a50d10a9b628828195e82b7ee44ff59866f3659f2028541856bba818340c404e00061645c2676bc63f8ece42fd511e
+DIST cryptography-38.0.2.tar.gz 599757 BLAKE2B 68f4650e9276b3bea1663ea0eb2576acf3d9992228d75a0af1af1d48311cfd087fe3bcb0b538476cd47bc431057993ef9aca35e5823995f753d470391616e6a4 SHA512 d29ba293ded9b0431f3da78cb93868974f628206a0d3c1d19a97d79e2c4ece791b424fdf3aea17f8e26559581db0aa2519644f63e60b62625d8b06bb63f93332
DIST cryptography_vectors-37.0.4.tar.gz 35242881 BLAKE2B 3b58f12deec978e0d104ee84d2330248fd00291b63ca181a1e4803253e643496ee3cee14ecf84681db60da028543ca50d05968cac4d2c0609ae820b3a02463dd SHA512 33098be46d072bf35f72320d64fd244a8ef890e99ae7baa21f9fbbb8d423d60f2711c3c1293830c860ff9bdd79bff910ce4df0f4dc9f363d712b722dab2de7ab
DIST cryptography_vectors-38.0.1.tar.gz 35273681 BLAKE2B 2011978306416283d3083f3c82d29bd1d80630ff8d3777c4df0a0dbe384b89720a44f504e6a826045dd13943f60eafb702a910a521fb6a201c6f9cd238d8926c SHA512 075216fcfc1e8de269c646f25cf23488d505743019bbd3edf6dee696533509969788b9982ec4487b671541893636c3eafb1e001d84e19cabff5ce1329e03b86e
+DIST cryptography_vectors-38.0.2.tar.gz 35273897 BLAKE2B ac875eff5d904e1c54a919562928bbe43ac6b7a2f79039df5f1557a1447da2e524dcbacd5e1b214b3e0246ac43a20ab59aa043df05fe96dc9a44cae7fe3ed86a SHA512 746e80447be709a93686dbb0f5459a9e7857b0b4f37f99de747d13d7844eb2d3604cf067c2c09202e28b6d11cbb5bdeb77d8cfaf4a06e482a56c676c46c06c5f
DIST iana-time-zone-0.1.47.crate 16974 BLAKE2B 841e380fd81def3eb5af424215c36caa9b48adf2368d9da57dd562ea4f806fc5ed1abd0c118eebb532264eb3ab5d8670049cfe20eada40cad7bef4718245c968 SHA512 c1817555149f05ae45f7e54046b79c732f80f5af382680d626dd3e970167092cdc176b259941d3c1533518bef511a92ed24c3aa538897e9d082984684d99f55b
DIST indoc-0.3.6.crate 9663 BLAKE2B ca7a1f4d3cbedbee0ba0a3f19c4b3352ff90927eef744b7e4f1d60855d4dc4265202972e81e0fc06d1222d8d5fb322efc4ef669af7396b251248a1e45c91def2 SHA512 e900aa3b001df0fdbf1f543d8b679af317e85a1f95e26fc556213f2826a4f6c82d8c4f3f82de435e3591f8bc14e78eb22668d901dcbe2287f46740e0291afacd
DIST indoc-impl-0.3.6.crate 7933 BLAKE2B 93e232e360e8f02943ef9a9cabf16bc863d792d8096b8d9a13a07f0b7b396db590abf83b5444f082317059dad7578ffae974dbc8a7e56fbdbab817b7d2534725 SHA512 18406587ee56a09dd2062cee456af697efa903343de42c0ff618a64ddf2bf7efed5da02e7220fed2636c555a6ae18059018f5c3c9b44ba8d3e5a34ea5b53c806
@@ -78,4 +80,5 @@ DIST winapi-i686-pc-windows-gnu-0.4.0.crate 2918815 BLAKE2B 4d357e4d30f955297217
DIST winapi-x86_64-pc-windows-gnu-0.4.0.crate 2947998 BLAKE2B 2ad1ea8b5fa07d544e910ccba043ae925269b76b26c9da356305b34b86741dd8b9aff0b9ffe3d562db4fcd7d7c46a11ce9e3168b782b1d89ae6881742b7ede82 SHA512 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
EBUILD cryptography-37.0.4.ebuild 2950 BLAKE2B 7d98a035a5b8a31fe659936717c53acaa754003388556230a22cc38d53e893a13f7dafcf1bdd46401bd3387685b8d7cbedc7d51bdfbaff90a0a3a10a80163b4e SHA512 3831f1fa923220a92947aa98a826183b2675d41a67f8e514950f03421a39243ad52bc2f0ee0cf32b20d1f55a00850a7e70326cedd950d0467632c3590c9d48d9
EBUILD cryptography-38.0.1.ebuild 3200 BLAKE2B faa7d9fc8f709098d3dfccf11d234bf8a9d96a20a1814824719f14d7d46d95aef2605ac561d6bc55eb6f0d8cc67159bb84c59468e3a67327ca485d074fc14f33 SHA512 3c666509d1ffb0c675d65e2503818e78f89503ca6d71aa07b3c4832171df5d86717ba0836e70480c175dfd736f413246f8b1d4ff261125dc737e63dac25f6237
+EBUILD cryptography-38.0.2.ebuild 3200 BLAKE2B faa7d9fc8f709098d3dfccf11d234bf8a9d96a20a1814824719f14d7d46d95aef2605ac561d6bc55eb6f0d8cc67159bb84c59468e3a67327ca485d074fc14f33 SHA512 3c666509d1ffb0c675d65e2503818e78f89503ca6d71aa07b3c4832171df5d86717ba0836e70480c175dfd736f413246f8b1d4ff261125dc737e63dac25f6237
MISC metadata.xml 385 BLAKE2B 28c12f0c0303afca4d0fb015a1ed123efb559686e71477b3120291164a01f219c0dce373d7f4f7380ced372343945a8ee1ce875c27851d3864a468ba48eb2cc1 SHA512 f80a4794ae57fc9e434679ccdd0ff4cc5e2c4fb48274cca32316f827dd6d4cd3b903cb45f52abdd4893866987d4d1026f7ddb1efaa76cb99e0f55d01e8433b83
diff --git a/dev-python/cryptography/cryptography-38.0.2.ebuild b/dev-python/cryptography/cryptography-38.0.2.ebuild
new file mode 100644
index 000000000000..62f6288176c9
--- /dev/null
+++ b/dev-python/cryptography/cryptography-38.0.2.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2022 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_{8..11} pypy3 )
+PYTHON_REQ_USE="threads(+)"
+
+CRATES="
+ Inflector-0.11.4
+ aliasable-0.1.3
+ android_system_properties-0.1.5
+ asn1-0.12.2
+ asn1_derive-0.12.2
+ autocfg-1.1.0
+ base64-0.13.0
+ bitflags-1.3.2
+ bumpalo-3.10.0
+ cfg-if-1.0.0
+ chrono-0.4.22
+ core-foundation-sys-0.8.3
+ iana-time-zone-0.1.47
+ indoc-0.3.6
+ indoc-impl-0.3.6
+ instant-0.1.12
+ js-sys-0.3.59
+ libc-0.2.132
+ lock_api-0.4.8
+ log-0.4.17
+ num-integer-0.1.45
+ num-traits-0.2.15
+ once_cell-1.14.0
+ ouroboros-0.15.4
+ ouroboros_macro-0.15.4
+ parking_lot-0.11.2
+ parking_lot_core-0.8.5
+ paste-0.1.18
+ paste-impl-0.1.18
+ pem-1.1.0
+ proc-macro-error-1.0.4
+ proc-macro-error-attr-1.0.4
+ proc-macro-hack-0.5.19
+ proc-macro2-1.0.43
+ pyo3-0.15.2
+ pyo3-build-config-0.15.2
+ pyo3-macros-0.15.2
+ pyo3-macros-backend-0.15.2
+ quote-1.0.21
+ redox_syscall-0.2.16
+ scopeguard-1.1.0
+ smallvec-1.9.0
+ syn-1.0.99
+ unicode-ident-1.0.3
+ unindent-0.1.10
+ version_check-0.9.4
+ wasm-bindgen-0.2.82
+ wasm-bindgen-backend-0.2.82
+ wasm-bindgen-macro-0.2.82
+ wasm-bindgen-macro-support-0.2.82
+ wasm-bindgen-shared-0.2.82
+ winapi-0.3.9
+ winapi-i686-pc-windows-gnu-0.4.0
+ winapi-x86_64-pc-windows-gnu-0.4.0
+"
+
+inherit cargo distutils-r1 multiprocessing
+
+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="
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ test? (
+ mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz
+ )
+"
+
+# extra licenses come from Rust deps
+LICENSE="Apache-2.0 BSD BSD-2 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)"
+}