diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-21 05:40:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-21 05:40:28 +0000 |
commit | b08574f4102ea8282627f075758d981eb4ba6c56 (patch) | |
tree | e9089d8d349367b6fec26823430ba5754a23e558 /dev-python/cryptography | |
parent | 3fe8d2707d7ce24cce8f5d7eaa16b0b68cbaa2a4 (diff) |
gentoo auto-resync : 21:02:2024 - 05:40:28
Diffstat (limited to 'dev-python/cryptography')
-rw-r--r-- | dev-python/cryptography/Manifest | 3 | ||||
-rw-r--r-- | dev-python/cryptography/cryptography-42.0.4.ebuild | 146 |
2 files changed, 149 insertions, 0 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index 9a46c0f0dde2..20e6c0ea4d78 100644 --- a/dev-python/cryptography/Manifest +++ b/dev-python/cryptography/Manifest @@ -18,11 +18,13 @@ DIST cryptography-42.0.0.tar.gz 671860 BLAKE2B 40452225cac2937603000a496fd95ea07 DIST cryptography-42.0.1.tar.gz 672364 BLAKE2B 5e83c2dff17dc1ae03ca339766c91b28205694d73c9f2a08a169c4e41d63262a7f0180e0f4b92afd2a59d3226576b761c901341bdd4f2568111cfd9e6ffd3063 SHA512 978f21bb14dd15ab559af4c85cbc5c98b2ad047bedc980307d7fc91816ee50ace4b1259dac083eb03f03ce12db1eaae171405e33348ac3affd58c140b986dfbd DIST cryptography-42.0.2.tar.gz 672761 BLAKE2B 9c97305adebb88127cc6e2e44affee6c9703638abb1b09e34da424a617aa9eaddd8498a2452711af998dbe7818a6148392be78106104d01f2106d8de2b65ac97 SHA512 100f604884cfe5335369d48eeb1d28ccd822f13ddd13c007f4a265c887362bda2b88646328ca570c9969897bd838df6c1f6b7fe4abaf36e82cdb93358694b12c DIST cryptography-42.0.3.tar.gz 669589 BLAKE2B 328c297a989f96d10e92c92d5b84e147512498be7ad205b2f36fcdb6234b4c77ac7f20f3ba8f74d05a573e2eacc68e315a97fbc429b87b5da625d4cf359773bd SHA512 d3733d08afea1cb3ad5a01f241ea7f58aaf38334cd25e2b7f64686ffd697f20ec30133931af7fe6a439ba0cb365d63ea6ec0512c627b768891f9e82c15dc0cdd +DIST cryptography-42.0.4.tar.gz 670311 BLAKE2B 9dc906048bf3be1b457a528cebf8d947ef9088ac5bdcae18b43359412c793fa25fe66a1032d118d0a64924e20065e449977ace3027e508cb383381dd175119ce SHA512 e949672bbe5347c994e1217767c45b4a302830074ed404b65fdad5166f415c4d4c597c1b928eba3a61b338438a178c32302e001ffd6a2c34bbb51ba79ae2e938 DIST cryptography_vectors-41.0.7.tar.gz 35288159 BLAKE2B ef2e82f42bb4964a256e875bf3b7bcca549df11839893ac3b8d909d05308360bb0696774fd89bd8951bf4f13aaf752a7700bfde78e68cce450ffaf5117182958 SHA512 05a96cc8d1e3653e62c6822f202f6c25157b2a11bcc42fa8a9462ac1844c295147ed5f49315f0b297c689e244cf13d02948ff5e57c21a487f0210f87518c913f DIST cryptography_vectors-42.0.0.tar.gz 35277565 BLAKE2B a770b13244633dc155f21c9179440d4f5d393c71801e44e374e38c183055b842f127090160fab6ba44748e68b2004c0d128980b89b1ae760e6148ba4784fecce SHA512 2d7a633ddf6b81bc3098a54dc61b801e7ea8117424d02db2b9baeb2a2a6da734e07b64f24f924fbf1ae45d65ce2f34db8cc76b1bfaed9dab00a69ef0332245e1 DIST cryptography_vectors-42.0.1.tar.gz 35277715 BLAKE2B a1996ddd91eb5986c6ea72a3a163506ac60522eb459ce36b90ade44045d662ecbc6e2c2875a0437371885968524c43829e02bcbc094e6a1cb5ade5b743114cb4 SHA512 b7d4503f182e29d1d33bcd5ad2f4327a8deb3e11c640c843eab3b870780b7285323fa044f98dd052101e4926b2bbbbecdf5de00858df8fbedc25e7c69912b335 DIST cryptography_vectors-42.0.2.tar.gz 35277730 BLAKE2B 63e2d1b707b66e13f8aecefeebe1474118f05fcc017635b4fe91bfbd73ac43db2923375a75e0725eb35fb37d4facc2e2dadef771c84563d08d13e85fd90c0dfe SHA512 8ebc90e26b1398c5315061f621c3364e0b1759ccedcc566e6420e730f7df65763741e2cb26a87f4004964f4fb57703be2009fc5443266e0bfd9b5620ced9d04d DIST cryptography_vectors-42.0.3.tar.gz 35277759 BLAKE2B 4474fca84de99b025a8aa8c7414f5ead4c2c7e8098b80689229c133a8422b1aff034bcb54fcd840d9090230649ce26b52c10c1d4fb35e3ad7ec888952c809fb7 SHA512 35d0220b564c384458c0844c66d80f49af763e728ca59658964ebefcf0433197a72be0a896ce6007b183b761c49200a7b6bba3b84bc13390336ca2875e04f7f4 +DIST cryptography_vectors-42.0.4.tar.gz 35277611 BLAKE2B 84c998730505b5ac355b548cdd25dde876e43fc7fcb11feb5714ab9e21314d1a1fb519ba46ca5986e3f3522434a96a7803e7dcb6f303a61bb1fa2f8bab341ad1 SHA512 a1f324a43b0041733bb18f9e0b371ae7aab0786a0d5166ccde622946d5ee68c143a5b92a4c50bd8649b5b71962399994ec506250cdf6e691cd259d93f9910662 DIST foreign-types-0.3.2.crate 7504 BLAKE2B 520818b702d990d296ecd31a8646850202509ccfa18edd0e1b260289619a6c351e758f317ec0824bd76eccb209b6f087057c25f1bd01a47897715013dd834867 SHA512 bf27b8243ed482c202d120383374f19ff09422535e24b9c1aebccc66529bf300ca17b8bbc76d67f98ac092e614497afe3add9dc68aa69c93074df05762f91232 DIST foreign-types-shared-0.1.1.crate 5672 BLAKE2B d2e42e04b6657e7a69fe0bd20c672176629c743e49a55fd007bb30e289710b70045d445ae9cae0eeaa747ee708c90e8abd9b5fc39bad8ec0666befe1b696d4f1 SHA512 bafdb2143e136fb0818e2ffd90b5c862b7181647d6568947d4e4531012bbf7a57b597221ec7056c1b562dfc0c3b5dead26d1a4111ebc15e7863737a873518a4a DIST heck-0.4.1.crate 11567 BLAKE2B 520aeea740cfa30b0cca12f73594ffa655f32959673b1c9caaca1ea0162e455546ae3033881394c0ba0516bcd5c9a997da02162e1585522d665813b9096eabd9 SHA512 8c80e959d2f10a2893f9a71994720f90747742bb5b61fc0a539eed3ea5679b140c48fd7f7690d7122cd6af5f7f20a19d412e3569fe741c6d31f6b2ce1e0b80e8 @@ -106,4 +108,5 @@ EBUILD cryptography-42.0.0.ebuild 3331 BLAKE2B e7a7fad0a3990e3adfe9bb37be8fce9d6 EBUILD cryptography-42.0.1.ebuild 3331 BLAKE2B e7a7fad0a3990e3adfe9bb37be8fce9d64bbe9f0ef37c6d86e39b117a1c8d68a7cf40ff524393f68294ba2f0124d9bef436cd722c34ea04ee7a4539f52abe5ee SHA512 48a003d248b6752d95239f86ee90101ba31024323a27645174858986fc88a5a7cf7f45158f29e582bdbcc0a5b2e1f15c4d6b84c42643586fdf50bd906b87c9f4 EBUILD cryptography-42.0.2.ebuild 3331 BLAKE2B e7a7fad0a3990e3adfe9bb37be8fce9d64bbe9f0ef37c6d86e39b117a1c8d68a7cf40ff524393f68294ba2f0124d9bef436cd722c34ea04ee7a4539f52abe5ee SHA512 48a003d248b6752d95239f86ee90101ba31024323a27645174858986fc88a5a7cf7f45158f29e582bdbcc0a5b2e1f15c4d6b84c42643586fdf50bd906b87c9f4 EBUILD cryptography-42.0.3.ebuild 3331 BLAKE2B e7a7fad0a3990e3adfe9bb37be8fce9d64bbe9f0ef37c6d86e39b117a1c8d68a7cf40ff524393f68294ba2f0124d9bef436cd722c34ea04ee7a4539f52abe5ee SHA512 48a003d248b6752d95239f86ee90101ba31024323a27645174858986fc88a5a7cf7f45158f29e582bdbcc0a5b2e1f15c4d6b84c42643586fdf50bd906b87c9f4 +EBUILD cryptography-42.0.4.ebuild 3331 BLAKE2B e7a7fad0a3990e3adfe9bb37be8fce9d64bbe9f0ef37c6d86e39b117a1c8d68a7cf40ff524393f68294ba2f0124d9bef436cd722c34ea04ee7a4539f52abe5ee SHA512 48a003d248b6752d95239f86ee90101ba31024323a27645174858986fc88a5a7cf7f45158f29e582bdbcc0a5b2e1f15c4d6b84c42643586fdf50bd906b87c9f4 MISC metadata.xml 464 BLAKE2B 96c0bd97b83c9718910d129260402fdc37e88a96ac6002c8f6dd19fb21d6daf31211b83ff7423036811e27954811ebdc810c8328f18c620682bd9428f42ba1f9 SHA512 2f36a186bb195a8cbafe1d8dd6630fadf0ea56b22906ebaf3c90954adb8b66e1017f599169e2b1ca386e1113c1a6b834fff90f2bec527bed53f62985120732d6 diff --git a/dev-python/cryptography/cryptography-42.0.4.ebuild b/dev-python/cryptography/cryptography-42.0.4.ebuild new file mode 100644 index 000000000000..de93827364b9 --- /dev/null +++ b/dev-python/cryptography/cryptography-42.0.4.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CARGO_OPTIONAL=yes +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +CRATES=" + asn1@0.15.5 + asn1_derive@0.15.5 + autocfg@1.1.0 + base64@0.21.7 + bitflags@1.3.2 + bitflags@2.4.2 + cc@1.0.83 + cfg-if@1.0.0 + foreign-types-shared@0.1.1 + foreign-types@0.3.2 + heck@0.4.1 + indoc@2.0.4 + libc@0.2.152 + lock_api@0.4.11 + memoffset@0.9.0 + once_cell@1.19.0 + openssl-macros@0.1.1 + openssl-sys@0.9.99 + openssl@0.10.63 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + pem@3.0.3 + pkg-config@0.3.29 + proc-macro2@1.0.78 + pyo3-build-config@0.20.2 + pyo3-ffi@0.20.2 + pyo3-macros-backend@0.20.2 + pyo3-macros@0.20.2 + pyo3@0.20.2 + quote@1.0.35 + redox_syscall@0.4.1 + scopeguard@1.2.0 + self_cell@1.0.3 + smallvec@1.13.1 + syn@2.0.48 + target-lexicon@0.12.13 + unicode-ident@1.0.12 + unindent@0.2.3 + vcpkg@0.2.15 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 +" + +inherit cargo distutils-r1 flag-o-matic 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} + test? ( + $(pypi_sdist_url cryptography_vectors "$(ver_cut 1-3)") + ) +" + +LICENSE="|| ( Apache-2.0 BSD ) PSF-2" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-DFS-2016 +" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~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} +" +# XXX: Drop explicit >=virtual/rust-1.56.0 dep once that's the minimum in cargo.eclass +# and replace it with ${RUST_DEPEND} +BDEPEND=" + >=dev-python/setuptools-rust-1.7.0[${PYTHON_USEDEP}] + >=virtual/rust-1.56.0 + test? ( + dev-python/certifi[${PYTHON_USEDEP}] + >=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() { + default + + sed -i -e 's:--benchmark-disable::' pyproject.toml || die + + # 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_configure_all() { + filter-lto # bug #903908 +} + +python_test() { + local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}" + local EPYTEST_IGNORE=( + tests/bench + ) + epytest -n "$(makeopts_jobs)" +} |