commit:     8aefd0db76d3c18b02927bab160ba72e4c2c0237
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 18 13:00:08 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 18 13:04:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aefd0db

dev-python/cryptography: Bump to 45.0.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/cryptography/Manifest                   |   2 +
 dev-python/cryptography/cryptography-45.0.2.ebuild | 133 +++++++++++++++++++++
 2 files changed, 135 insertions(+)

diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
index e20e2bdfc237..99c0b0592c63 100644
--- a/dev-python/cryptography/Manifest
+++ b/dev-python/cryptography/Manifest
@@ -12,9 +12,11 @@ DIST cfg-if-1.0.0.crate 7934 BLAKE2B 
e99a5589c11d79d77a4537b34ce0a45d37b981c123b
 DIST cryptography-44.0.2.tar.gz 710807 BLAKE2B 
3bdfe1f6d4f44a77f8d5c2299e10e672eba2a68888fd5ee8ffae8a452d6c586c39bf5527feee60b62121dd7b18e13b1c91705df87ba0b52885e8538c56fec139
 SHA512 
12594fcd349b02a077d52b870af99850e275f13a561bbe9c993475f4ebfd35eccb63400c93a9629caf68195b759e2dbfddc3c60dc3066d063bb447acd7b17c03
 DIST cryptography-44.0.3.tar.gz 711096 BLAKE2B 
42b1fd4cd22c50d377c9942740561612dcc5958a7c9e2bf2d54fc88faac43b3ebbd4ff4085fee923c39510f591e7e93f811541389733b190af3e69504b13643b
 SHA512 
505c3a4275dbaae827ebc7c478d3196c9a2bef71e460a391d56ee53b7ff8a054f7ac81c1a8a4a59829d04dd9a434c123df948627ab8f07ec39259ea0498a8c69
 DIST cryptography-45.0.1.tar.gz 743847 BLAKE2B 
5443dccc07e0b798130b0e4fc01c35c6797183c53c71c493fb27ddc87a455c8b2149cfbcb70d9496acbe7d0f54fdf365319f7846dafb6a2d76bced920f0f6e3a
 SHA512 
ec1fe1125f2c505613af0e82f838486201a883446e3d4706f4bdb06c5dff0b3813a0c48350d3b976427339d0d5efb67620cbaaf1278dc436bad17256b4253d96
+DIST cryptography-45.0.2.tar.gz 743865 BLAKE2B 
e2aa5e53b2e6564ed70762c2439b9e75f24042ef30aa2c47f97cd556e5ba95c362f5e30368e79b397b71ddba77feb6d9cc295a9b7062cf32c00cf02e9a02498e
 SHA512 
b81cb339e8f8853503d518e37a958115c995565aa241d80307e2fb75cb46d476ce400e6871bc4beb93e0b35e456c8b7dbb49f161f8f112bd01e137770d251964
 DIST cryptography_vectors-44.0.2.tar.gz 35318019 BLAKE2B 
67ed8f4af54c4469f1da21993e7220c649b1098f6e2b82fff10f8339cfd89506d6b6f64083999998408bc60fd66172e1b33844f39d41387c7ff8cc1efc52a35d
 SHA512 
7a75078eae4a1a46d5aa87961aa2e4f28725a2feac99ea0ce00d48aa509ce00fb43176d48eab8eabaa3f7204ba8c4b2ef78b4b65187cfd5056b3c3e3116b4239
 DIST cryptography_vectors-44.0.3.tar.gz 35317973 BLAKE2B 
1c76a7ddfb188db3cdd72c1458be6b249bbf9ea403767f002bb4044bdcc835d28aa3c5ff9ad15dd7721d0f54d76db499e44d9dda7cd4a35817b7a6cac6e206f8
 SHA512 
1287901703699053099bb8843928d0621884864d727de65d4a19d4f841271af8b2a773e8a0cbd7e850258db202bfb345439a72f57d8e5f69c6e1366618c1fa64
 DIST cryptography_vectors-45.0.1.tar.gz 35340574 BLAKE2B 
dbaef3c7b0431af69acbaba3955fd9f4c179e4efc643735403da4ec3e3ba3322d295027e26ae6b4ffc4fec81aba4035d58f3d564f42cfb7f64c7215d3a1ced77
 SHA512 
b9a8c2fb19c58f6d5337d2dd1d5cf79591b4d8637f46f56918482be5b3bb366f06d4e5cece9485162886a692edb74f39ba8b54cc530fa3c5dae0e3b2e5820197
+DIST cryptography_vectors-45.0.2.tar.gz 35340607 BLAKE2B 
433b09f69a1e69bcd5ae1346ec2564b3bcb5a7eca26bd65389a9be8383b7891d8fa63b0d81805fd30bb2f5fa136600c0c79bddb7219f45b6fb85f8ecdd713f88
 SHA512 
cac88b001c6a374c98cb8222477f8ed111ca873f5146143912070949dbeca3ccf7fa1d788220c6bbe67a86d88487f736b4ad536156cb47e99db0546e5f8f2d7d
 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.5.0.crate 11517 BLAKE2B 
5365ec43b2239a76b33a174f1a4292ece4147f9d382a68c6c60db78fdc8bad0afb1d51a65bcb25e96675372faa4ea37c318265030b0546ba51942f7c929e1835
 SHA512 
f044fc9c3d22466629fd8f772ec0555350fd611c0cfadca51d99a3d2f10e155f77c1091916c8a95a6b9b499f366c2e99a5fbf45b010f988bfb9b2501bf9f6a76

diff --git a/dev-python/cryptography/cryptography-45.0.2.ebuild 
b/dev-python/cryptography/cryptography-45.0.2.ebuild
new file mode 100644
index 000000000000..4bd8987fc003
--- /dev/null
+++ b/dev-python/cryptography/cryptography-45.0.2.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2025 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
+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]
+"
+
+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-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-1.8:=[${PYTHON_USEDEP}]
+       ' 'python*')
+"
+DEPEND="
+       ${RDEPEND}
+"
+
+BDEPEND="
+       ${RUST_DEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       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() {
+       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}/cryptography_vectors-${PV}"
+       local EPYTEST_IGNORE=(
+               tests/bench
+       )
+       epytest -n "$(makeopts_jobs)"
+}

Reply via email to