commit: c57b0930d969f00d57def70981c9b713fd6138bc Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 11 02:34:25 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 11 03:23:40 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c57b0930
dev-python/cryptography: Bump to 46.0.5 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/cryptography/Manifest | 4 + dev-python/cryptography/cryptography-46.0.5.ebuild | 142 +++++++++++++++++++++ 2 files changed, 146 insertions(+) diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index 48dada427509..ce59edae087b 100644 --- a/dev-python/cryptography/Manifest +++ b/dev-python/cryptography/Manifest @@ -8,9 +8,13 @@ DIST cfg-if-1.0.3.crate 8719 BLAKE2B 5cd0ac122110740895b45cdf8e0f738f2de1882d5a0 DIST cryptography-46.0.3.tar.gz 749258 BLAKE2B aa7eab6b6a39551034c8ade545a0b8c52d2d778a9e74dbf306eada2dc5314e3cdc7dee23af2fba8d2aa14ece260e3ace920f890f3e02370e8e86b20001ade2ee SHA512 b4e1af6e8ef676396e25806c64a981bb70372ca0162c2fe7d6a242243686d9fed35262080a3d0241afbf71963fc7d753a46fd31489fff3a734ef6c1203b64d02 DIST cryptography-46.0.4.tar.gz 749301 BLAKE2B 960fc436cd23414b0111992fe3667927a6ebf02a690484150728f3168ba051938682ad571e36d1b3f618f563debfe9b1f5f54239fccc1932ec67b9ec8b040528 SHA512 1c984794f37e673194ba7ff28c0d77ffadb2e5f4a3d278f07ae3f522b60ada107e982cebb6ebc170d4cd6372e6f41b872d38adadbddbc40699b2ae3236f2bdf7 DIST cryptography-46.0.4.tar.gz.provenance 9502 BLAKE2B 69ed43ed7fb01eccf66c853918355ae5542f4d8034a800b19d2bdc78c2f128b9789608531eea670e05067521a769f015660b9a4112ceb4df99e366d2a8c976c9 SHA512 42cbcbff8368b4f956b3f005afef6620ae61bb4e95ef8f3979258ac2806a05d09698cf0d50ab58128d53ad0f9b150d41b8e91b2931c960828b8d9cb424f44bee +DIST cryptography-46.0.5.tar.gz 750064 BLAKE2B 7ae24a245583daf64a01cfbb9269e9d5aca82929543957572bea56f9e295593e81f836c87bd32bcb7aaa58253b7a156401a1d29992b60e73fd5926016fbbb4cd SHA512 5bc5ea5b85c600504c46e2376a45cee749f41e2b4a6eb639b05d289370dcdc82b2ace423532f5591da16ca56ea32919e47ec154cb72bf7e1f5f3f923c744a185 +DIST cryptography-46.0.5.tar.gz.provenance 9455 BLAKE2B 43796d3302d572eed76aadcab803b95217172945d77838f6fb1171fdd6f61bc811690aa73434479ac228fa98ad39cb513e781a6bc9c11311447350a6b7e1036f SHA512 317dcd14b36f056c1e5486c65cb5f8d82cfc0c2e3324279093e9d3533553bf2b120f3b0ecc99033c8d915fa712825eed2070b9b61fd8e98ceb6c21cf7bdd755d DIST cryptography_vectors-46.0.3.tar.gz 33809245 BLAKE2B c5832c11ba23fd44c745cd766a83ceb39a622ebbaca0dc463785776dd36d4d8065a4780894b7ff8260408893527a86e5f90367cf6b26f50c99a2f0db325e64e9 SHA512 6ebb80c4040143484bcc69239144362e7cef479dab2b9ebd68993ade3da1ed812cc1b7f3c41dc1a9a7ae0874c2e794e32f2762c896e768507ac55596fa45d765 DIST cryptography_vectors-46.0.4.tar.gz 33809303 BLAKE2B 6266f7627056f8b372bbd4873260f0c9fc2ba872c643583a7679c7c035d28da9dbac8335a82d599091ea43292a18a0327ad739b68bd1124d495c32b065152488 SHA512 973a7b77814f513bb49402150a25dfb49e86b9a344b5703b9c692e42602cc596d6c81fbeffea1f110e02f187773ae8d4295745931519ded18f745d100aba6169 DIST cryptography_vectors-46.0.4.tar.gz.provenance 9420 BLAKE2B 6a8bd2cfbc96957a40f80e0713997ee3d3656cdeecc82ca1b8bfed2ed7c41936bcbf709a9934691f72a38ebdc89c72cf4d7ec6211ad6acc7aa74559b2927c5e0 SHA512 61dfcf127ebb10e169224478b70fc9aa79446ccde987657dfae8810f0133ae957344a7512082fc463550caf3eb8dda772fc3fc2173cd94f2fadb84135a5b605d +DIST cryptography_vectors-46.0.5.tar.gz 33809256 BLAKE2B 26d428128708491bff05eb09939b22cec0f1b2248379ed063c078504663775b3e0a5a2223355674a4fc0c7bf563a73724098032f8f1a5c963fc21f5616afd653 SHA512 44197977e2c46680d9c78061bb04e8ba9e5118666a90c76e560d2f5b2ca1488615b380dd23429ab2bec75bc73c8c9b87bb51a7d6220067a8eb548fbfb5b23c8e +DIST cryptography_vectors-46.0.5.tar.gz.provenance 9561 BLAKE2B e8da4de62146333dbe154e913b8f6ac6b6e7fe7b334ba89ad09a446a85b0ebba65d4bae63d805becca692c2ad22e46d39efd54cf2db3b1505c017dbde377522c SHA512 199ea26934c99fc5097cc3c56f2991e34a9c9a2dae4881ba27fcefb0dcf2cb17b19568388d52fdadbb80c1cff6bb6bcd6d61afc0ef1d93b0fe28995984957457 DIST find-msvc-tools-0.1.1.crate 30228 BLAKE2B 9f6d84697a0310021a59789a0aebcf5895490e4dd719a2ef820ddf2f225ecd13c814e2c03e8d4de4089a2d1599b469a900c0c1072f9b57dcce9fb8634dcea6b2 SHA512 cc91ce79858db4a6feb3ff0fe24d7b29a523285247116a42b27affacc3f034afc0d458ac8716922f5fec5f23deafd62e875ec899d4ea58531d028535c22e137e 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 diff --git a/dev-python/cryptography/cryptography-46.0.5.ebuild b/dev-python/cryptography/cryptography-46.0.5.ebuild new file mode 100644 index 000000000000..ac207990c5f6 --- /dev/null +++ b/dev-python/cryptography/cryptography-46.0.5.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CARGO_OPTIONAL=yes +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYPI_VERIFY_REPO=https://github.com/pyca/cryptography +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) +PYTHON_REQ_USE="threads(+)" + +CRATES=" + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] +" + +inherit cargo distutils-r1 flag-o-matic 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)") + $(pypi_provenance_url "${VEC_P}.tar.gz" cryptography_vectors "$(ver_cut 1-3)") + -> ${VEC_P}.tar.gz.provenance + ) +" + +LICENSE="|| ( Apache-2.0 BSD ) PSF-2" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-3.0 +" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-libs/openssl-1.0.2o-r6:0= + $(python_gen_cond_dep ' + >=dev-python/cffi-2.0.0:=[${PYTHON_USEDEP}] + ' 'python*') +" +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + ${RUST_DEPEND} + >=dev-util/maturin-1.9.4[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/iso8601[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${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" + +EPYTEST_PLUGINS=( hypothesis pytest-subtests ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_unpack() { + if use verify-provenance; then + pypi_verify_provenance "${DISTDIR}/${P}.tar.gz"{,.provenance} + use test && pypi_verify_provenance "${DISTDIR}/${VEC_P}.tar.gz"{,.provenance} + fi + + cargo_src_unpack +} + +src_prepare() { + distutils-r1_src_prepare + + 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}/${VEC_P}" + local EPYTEST_IGNORE=( + tests/bench + ) + epytest +}
