diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-07-11 06:54:24 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-07-11 07:51:43 +0200 |
commit | af0342e68a19d8337ea5da541084ed7dfa68be51 (patch) | |
tree | e6c4af7bec34b6098feee74c0b3b05094599d907 /dev-python/cryptography | |
parent | dev-python/tifffile: Bump to 2023.7.10 (diff) | |
download | gentoo-af0342e68a19d8337ea5da541084ed7dfa68be51.tar.gz gentoo-af0342e68a19d8337ea5da541084ed7dfa68be51.tar.bz2 gentoo-af0342e68a19d8337ea5da541084ed7dfa68be51.zip |
dev-python/cryptography: Bump to 41.0.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/cryptography')
-rw-r--r-- | dev-python/cryptography/Manifest | 3 | ||||
-rw-r--r-- | dev-python/cryptography/cryptography-41.0.2.ebuild | 149 |
2 files changed, 152 insertions, 0 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index c28aab16eac1..6873c3d96818 100644 --- a/dev-python/cryptography/Manifest +++ b/dev-python/cryptography/Manifest @@ -17,8 +17,10 @@ DIST core-foundation-sys-0.8.3.crate 17519 BLAKE2B 4ac3d9ab16753dd995abe82f158d4 DIST cryptography-40.0.2-pyo3-0.18.patch.bz2 8675 BLAKE2B d7c0775503003f59a95dca2bf677c0d46a23967661d91bcfa9d3c9ddcf58e62c7a6f3d7b658076cb91e3e47f58ae84226f9162bdbb907fe8df1c69b9175c00e4 SHA512 e695af34bf08a8857f1c22cfa533b670b3c70e2ff4c9affd3e7664c0b828866d6d577dd2d6d38fd43b0d3c963a8aa91d7f5b6c00f633753dcf040180827abaa2 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_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 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 @@ -60,6 +62,7 @@ DIST proc-macro-error-1.0.4.crate 25293 BLAKE2B ef918c5efaf2545ab38787c8d0c07315 DIST proc-macro-error-attr-1.0.4.crate 7971 BLAKE2B 98e2925881c2be186e22c2c439697e91d43f807eb61a5d13e3b0b4321ed50a74f3d699942c04b89b6fea0f156bb5d19ebcf22f9cd4b98a7e6917c437600ed823 SHA512 2606afa9ec78d7dad4500c98d3a5ecbd02c6b53ab829c742bed7f57b322a95238ab4e01cf268746815f1424fd9b02eddfa30e72f98c66106f57765f3d3116495 DIST proc-macro2-1.0.53.crate 43351 BLAKE2B 9f93a0407a2c871bdeab7c48f4f5ab2497ea75e3c56929a659c2d18fd735bb0e65908b240ea4f64289b48f00185ecfabad24d8422e7fc08fab6b3be59dffab02 SHA512 a68e0b21f13d52c3efbcfc9fc9a7b99ba7fbdae5b975afabed2f2f76cb312a0abbbe7c791eb6e0a99f7417c0ffb749cc4596eab7b463dcbcdb9858b81753a84c DIST proc-macro2-1.0.59.crate 44360 BLAKE2B b1e42efd70e9a61bd46fd8bdd7db26aea142d98d28765de799901606b721c23a22c3e853d0821709ef5ddeac0304731b6a09c3bff3b7769e946b77fc67e44d36 SHA512 30e3340f53593afb3f07c4ba4c3d51acabd9a7513976aeaeed4c063fee268a28066c53b265b629d5d3f56597d1d34a9e69378f0ef5cda37b51a8fa8b67424aea +DIST proc-macro2-1.0.64.crate 44848 BLAKE2B 4422122d9299eff3bfbb4507c4a117fef7c0906cab5a680933d482b7f9b49480bcb9c8172b412e70bf87dd0737b8532e90c310bf083f144292cc72190059ba3b SHA512 884fd14ff23c19420692e35a38f88bb6a766a09da105759cd958c315b9360a2c49cfe61ceaa3122307d44040195ec9dffb12b6d0ce224fbac5d3701621a12b04 DIST pyo3-0.18.3.crate 420236 BLAKE2B bc00a825a67ed3590b31d3ea6bd77f6c4c927c0355d9d03ce64ca44e36ae3e29ab4d891bf2d94ca074b3bf858e077c516dc64e4620f875fe1e8fbffb5c9db1ec SHA512 39f044a19a42a5e2f46049431fbe3fe10c14d12a4741cc789b42de7cbf448bcbded7fe38a0f124d994ff9bcd3d95a19305dbfdc7462331fda3e6686cc4289be5 DIST pyo3-build-config-0.18.3.crate 29137 BLAKE2B 5fa645b64f50a078f38cc10a27ed52bd7e7aadd8a069c05ec2963f0b7c869b94d29eddda97cc31d200cf749ab8e2cd9cd1ea00e75620287e9187745ae0e100a5 SHA512 7ccad5f245e84895e147389f05270f32d12f81aba46bcd0dc184b8d62af2ea579efc50383502efda40601c981c4dbcf911aa7d8192364caa2e177ad939062cdb DIST pyo3-ffi-0.18.3.crate 64474 BLAKE2B 32bedfb4c7d88e539e958af0dd48af311934a817282a01f860af7cd824fa1e3825c505463b78cda57541bea8ccbbedacdc0f67bef686e6775fab3787c26c6d2c SHA512 55240c7824ad1e5c69e05a31ec03e2064290c89c4c98f06c3ebc38c311a10b1690571c977a103790ddcc9623ac42fbf525fb028e910baedb9acafe39fd6e4a82 diff --git a/dev-python/cryptography/cryptography-41.0.2.ebuild b/dev-python/cryptography/cryptography-41.0.2.ebuild new file mode 100644 index 000000000000..fb9f8df7454f --- /dev/null +++ b/dev-python/cryptography/cryptography-41.0.2.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=" + Inflector@0.11.4 + aliasable@0.1.3 + asn1@0.15.2 + asn1_derive@0.15.2 + autocfg@1.1.0 + base64@0.13.1 + bitflags@1.3.2 + cc@1.0.79 + cfg-if@1.0.0 + foreign-types-shared@0.1.1 + foreign-types@0.3.2 + indoc@1.0.9 + libc@0.2.144 + lock_api@0.4.9 + memoffset@0.8.0 + once_cell@1.17.2 + openssl-macros@0.1.1 + openssl-sys@0.9.88 + openssl@0.10.54 + ouroboros@0.15.6 + ouroboros_macro@0.15.6 + parking_lot@0.12.1 + parking_lot_core@0.9.7 + pem@1.1.1 + pkg-config@0.3.27 + proc-macro-error-attr@1.0.4 + proc-macro-error@1.0.4 + proc-macro2@1.0.64 + pyo3-build-config@0.18.3 + pyo3-ffi@0.18.3 + pyo3-macros-backend@0.18.3 + pyo3-macros@0.18.3 + pyo3@0.18.3 + quote@1.0.28 + redox_syscall@0.2.16 + scopeguard@1.1.0 + smallvec@1.10.0 + syn@1.0.109 + syn@2.0.18 + target-lexicon@0.12.7 + unicode-ident@1.0.9 + unindent@0.1.11 + vcpkg@0.2.15 + version_check@0.9.4 + windows-sys@0.45.0 + windows-targets@0.42.2 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_msvc@0.42.2 + windows_i686_gnu@0.42.2 + windows_i686_msvc@0.42.2 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_msvc@0.42.2 +" + +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 ~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)" +} |