commit: dc2dc66599c9b3d8fedc353803c3e515c9bc5271
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 2 05:31:53 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug 2 06:05:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2dc665
dev-python/cryptography: Bump to 41.0.3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/cryptography/Manifest | 2 +
dev-python/cryptography/cryptography-41.0.3.ebuild | 149 +++++++++++++++++++++
2 files changed, 151 insertions(+)
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
index 6873c3d96818..c9ff630321a6 100644
--- a/dev-python/cryptography/Manifest
+++ b/dev-python/cryptography/Manifest
@@ -18,9 +18,11 @@ DIST cryptography-40.0.2-pyo3-0.18.patch.bz2 8675 BLAKE2B
d7c0775503003f59a95dca
DIST cryptography-40.0.2.tar.gz 625561 BLAKE2B
99c3ff530abeef47154fc77b9d63128c35737d27ae120415fc3f1de5265ef33aadcb77f023ddd4266d7f414a67ac9c835249fe3ec4812268df5ebbcb828fded7
SHA512
391aba41fa75052d86182d39096c61eb37126a1e94499fe1934cc3307c8c7e819ead0e904c58c0b36fa4c4bc375b092d1b352217bc0d448f4aab587cff90528e
DIST cryptography-41.0.1.tar.gz 629124 BLAKE2B
726b6adbdd175e71135c7fcf239c2be822eea2e0221d59301dba3ee24aa958bd12acd0945883e4d0a14028cb0fe16b4c5f0c0adde3d44d23a815a290d87eb4af
SHA512
7f944cc99f57db3e3e54eaea74ce65a4477c71fc9475dfb50247ca291d5e806dbf0323651edf9ce8ec3bf03de8912fb86f6c83b3b76f1d0e37369bd83e86805c
DIST cryptography-41.0.2.tar.gz 630080 BLAKE2B
26f1422133510d2c8076dfdccc4cfc2134b3704122b13e15cc34b1b4a1362d81a22efb7cb9ba64a266a7832ff7910ddd9da94f4ab8e58bf7308985ca57c3c00c
SHA512
9c9b7fd047430bbde841fcd97e4ce76be6c708b372a7c1170013d8d8baaa263d90bed4a0fa4fca82ff713e8acf25971e7eab0f4ec1c8cbc8e9658a8527787e3a
+DIST cryptography-41.0.3.tar.gz 630139 BLAKE2B
148c01d3956a821edfcbba386287707f6e327d49669d163c00080f5208d65f340096a211825d6b5550036b00c5ccf9c84b137413454d68cae5374e9c10947c87
SHA512
84f79f72be3646c1e9a932ba8aba514471f6c0e50462a0bb3a927622ce67c7932e71d44e187db8928b05f04b803b958284f785c0dc297a0c9453846af1ac1aca
DIST cryptography_vectors-40.0.2.tar.gz 35282075 BLAKE2B
f2bfc07c41950929a0e7d0ceeba453f7d342f9182209b24fa4de20d1084aa30794e3d6052cade6b25a3208621bfb21a15d4e0be2a57b2aad994b8001db591dee
SHA512
6f2a9ec715803760deb397ec810433df9e7862029b0f63ca661a9781b8dc5f18bd585438ca7781a566342967b855ce0371dbb3fc650be1fb6ca0ac6c744c05c0
DIST cryptography_vectors-41.0.1.tar.gz 35287642 BLAKE2B
c9007dae63398054fada6331b7de1f4ca8a3e2252c614878e800678eb9a6bcac81f4b41dc815d5ef62a73f9a26548c4c01475c8c3c4a8dfb799b95805e2a1e1e
SHA512
3371dea3898b9ce93599b6d37134bb7296442d9aa1318a6d933e73b7aea284c8c50fc93eac4fc2df9b31ff1c96e7bd45516a2c1399ca69e8e2e2d9d5a7ff12db
DIST cryptography_vectors-41.0.2.tar.gz 35288224 BLAKE2B
7ebc794f8b2425293a368ac08c6dc11a29fc545e4eb0862d5513785792adeb2b9c480c1c34fdde915a0b6c35f1fbedd528e5e5c7b601b6e7b13fe92809bfd2be
SHA512
a9aa816d646a8dad3739a1bc3420b4ceb688e2bc8a4cb6313d29264d773b58c1ef45832794d5a83c10addfe070083e2fa9877f6f3801faedf982b91783e00d7c
+DIST cryptography_vectors-41.0.3.tar.gz 35287886 BLAKE2B
525ac26bf9b9c95a3682fee97f05426c42aab985085c80a0957735898ffe7922a477d3a1130c844e721f5489d53f636f84472fa66a38b80f8ae7794fc6f5f080
SHA512
1f794f2bf4942ec47c93178061fc581c8ab87725927e7e6f0c939e6c499c98867296f87b39583f30ab42e3e682c5be8ef0aba705adf7390898df52ec3a822621
DIST cxx-1.0.86.crate 589122 BLAKE2B
22a18d62d7e2a4793b659d1ec330c7e5068715560f5a098946f1a59e8c76243cbfbcea42d5a9e68e81ea9f26949ab9d12997d7594832e8b670caa07f220d6087
SHA512
927fbc7ab0eae8c4a87c974ae0cf5a34dd291ca869f1476bb23cc7afca25e131f5f0417a3b901d424d25c870f2fc9bee5500169074ce3a040e08340c3a526e09
DIST cxx-build-1.0.86.crate 84425 BLAKE2B
91a7181e795bcec54bf707f97f2f1e54ea4b53106675a06163920424781da4285cea381ad4bcf01304766fe4db494213b63f047da8595030e43eebf6d7e9e229
SHA512
0be6e1e0b2655dcb8995168394baf6a68be26f405d4797328251e7c53ba31de14c8e68a8eb83b9b3b3a0e10fe28a989de5fc97e783572982ebb5af28152851b9
DIST cxxbridge-flags-1.0.86.crate 5251 BLAKE2B
d614de85cbb6b2eed683295a64b9401496277da847577a876e9102735a5121619c8af8eb33a77aad15a80397161f3dd9a2a3f5b2d5afb91172211008819c0beb
SHA512
1b2364c9651c4782fc7b05e55fb98873a48d9695bbba73c6d735113e25ebc6993bb9e945e954ff27d183b15949aa807a13c96683ec66bbfd822c7716c1ca18bf
diff --git a/dev-python/cryptography/cryptography-41.0.3.ebuild
b/dev-python/cryptography/cryptography-41.0.3.ebuild
new file mode 100644
index 000000000000..b052a16c4691
--- /dev/null
+++ b/dev-python/cryptography/cryptography-41.0.3.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2023 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="
+ [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]
+ [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-2 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}
+"
+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() {
+ 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)"
+}