diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-02 10:49:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-02 10:49:51 +0100 |
commit | a308b9d4bf7fb28a64aec9444316a00068c164f6 (patch) | |
tree | f3b3c687c12c2439e961bb78cea4cbcd08d27edb /dev-python/cryptography | |
parent | 567324b6954816e085ab34edc30e531d26aed9f0 (diff) |
gentoo auto-resync : 02:08:2023 - 10:49:50
Diffstat (limited to 'dev-python/cryptography')
-rw-r--r-- | dev-python/cryptography/Manifest | 3 | ||||
-rw-r--r-- | dev-python/cryptography/cryptography-41.0.3.ebuild | 149 |
2 files changed, 152 insertions, 0 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index 0fc30fa245d7..4b0b89d1d997 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 @@ -107,4 +109,5 @@ DIST windows_x86_64_msvc-0.42.2.crate 666936 BLAKE2B bc3a456e7f8bc272f8978ec6950 EBUILD cryptography-40.0.2-r2.ebuild 4029 BLAKE2B ef9cd2e0418b5ad57aa6d7768b60730c16d4e5bf6a4bc750f144cf049f2ec02d7a7ea38de27151972cb53710212f20f4b86a8b941332ba430e28f7a15eb75a22 SHA512 47c8dd2995f4689a19914810b0622295627000ad16829831acdcc91e0b7bfe3f55ac9171adf52bc3fe9138600e2b590ea9fa5b9b204ef0bf7e34adb34a7d2140 EBUILD cryptography-41.0.1-r1.ebuild 3270 BLAKE2B 8fd72a595f0cb4fd12c632b7c6003a519eb6ffa6987a31f6dd39210d5d54b8b35c385c78900811e89ec4c82e75d568aa086fc5462fe1cde079754446f2e358ab SHA512 0a5f80e3a6e73a0ad5597970ebb82200dc78dd29f803d8c354ed5d5bd795683a7ab9055ab4506d471eb23d0d72ffddbce833a60acc005f0d30535f1a7bf4610e EBUILD cryptography-41.0.2.ebuild 3282 BLAKE2B 94f758436f38e23342de87250df16aa17f5d8c1b1ddb541676aeae5db3e0912ea2c5b625d1aeef2435636d67d5d11f373835f9049623d7b3e22b51779d7e6476 SHA512 c4d14d5dca67d73576d8b13fe65e46ae1485d3bd1d683d99fe7bc1ae9d835bcc2627de12bf0000bf3269dc57c3467762faf4c2239d943dc8646249640ab94a2e +EBUILD cryptography-41.0.3.ebuild 3282 BLAKE2B 94f758436f38e23342de87250df16aa17f5d8c1b1ddb541676aeae5db3e0912ea2c5b625d1aeef2435636d67d5d11f373835f9049623d7b3e22b51779d7e6476 SHA512 c4d14d5dca67d73576d8b13fe65e46ae1485d3bd1d683d99fe7bc1ae9d835bcc2627de12bf0000bf3269dc57c3467762faf4c2239d943dc8646249640ab94a2e MISC metadata.xml 464 BLAKE2B 96c0bd97b83c9718910d129260402fdc37e88a96ac6002c8f6dd19fb21d6daf31211b83ff7423036811e27954811ebdc810c8328f18c620682bd9428f42ba1f9 SHA512 2f36a186bb195a8cbafe1d8dd6630fadf0ea56b22906ebaf3c90954adb8b66e1017f599169e2b1ca386e1113c1a6b834fff90f2bec527bed53f62985120732d6 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=" + 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 ~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)" +} |