From 504be628d80d738b781ef689a5c779bd0df8fb20 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 7 May 2024 18:08:51 +0000 Subject: Adding metadata --- dev-python/cryptography/Manifest | 2 +- .../cryptography/cryptography-42.0.5-r1.ebuild | 137 -------------------- dev-python/cryptography/cryptography-42.0.7.ebuild | 143 +++++++++++++++++++++ 3 files changed, 144 insertions(+), 138 deletions(-) delete mode 100644 dev-python/cryptography/cryptography-42.0.5-r1.ebuild create mode 100644 dev-python/cryptography/cryptography-42.0.7.ebuild (limited to 'dev-python/cryptography') diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index b80b23f14c2f..d01b15005e28 100644 --- a/dev-python/cryptography/Manifest +++ b/dev-python/cryptography/Manifest @@ -6,8 +6,8 @@ DIST bitflags-1.3.2.crate 23021 BLAKE2B eb990bb27b2bdeb66fd7212ce582cb36e1c616de DIST bitflags-2.4.2.crate 42602 BLAKE2B 768d4ca52aca73d8acf2f494a66957ed2603eefd5a04332ed0880d230c2cc6ef3bfdc0792fa6f288a0eb132913dbb256793e580bc34f4a40e8200e1fbafe97a9 SHA512 ef4c20e6e78a2ecee97e17189b7100a504d8176c7c15d7f17d62157a116d66f83f8b2bba472a4acf02cd3edbd94b20a7047af918c3f3b371e2e04f7474be0214 DIST cc-1.0.83.crate 68343 BLAKE2B 33245b33fa845ea2f36da36e3830ec835f937e4319865b357ee9d5ea29a0f9f8392eadb38bf1d95e3c15ed201e561acaa87aedcef744f8db3dabff87a96c7f02 SHA512 742a248c3a7547bb220a0b9c97b67a831fab9b4ac21daa08c85a3966b9fe576088def33e16132fcabec9a2828a6fc437088bb045bfc98b2cea829df6742565a7 DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b79b807cea836c89fc3926d693458893baca2882448d3d44e3f64e06141f6d916b748daa10b8cc1ae16d1b SHA512 0fb16a8882fd30e86b62c5143b1cb18ab564e84e75bd1f28fd12f24ffdc4a42e0d2e012a99abb606c12efe3c11061ff5bf8e24ab053e550ae083f7d90f6576ff -DIST cryptography-42.0.5.tar.gz 671025 BLAKE2B 0eb4b6722ffcbd8b1107afeff23ad72de8199b82923e82412176601aeda8eaf0fe53485ad0fb504be0e5d1898a4006d4bc2ecf5a406f818a69120df382d2ee87 SHA512 5524fd230b55580a2c647a0a78197a783e201fdfa8b3177b72c6d7b689afd76a689e4fe3593120d3adb7ee5cc4adf9211e8deedc8fab355e9ed70076db09f68b DIST cryptography-42.0.6.tar.gz 36021378 BLAKE2B 8387070cb0df852bcb2df6d6323305e0b0ea5004c43e9408a5f86c38cc7785a1b77b7a19409dc7e1475eea3c857d3ff10d9933287de597b57367bca153322d9a SHA512 faedb4394aa7e84e918bdcea7c675ba7a87cb5f5a7bbf5cf81598c2a949bcbdc1ef39eb1c441f3cd76e6b5dcc85c37dc908376d3d2511829e488ac9915c601a1 +DIST cryptography-42.0.7.tar.gz 671230 BLAKE2B d0c1e0c752e066a4bd7a01eb351463f4264603610981f738d629785a783bcdedbd5a9fefbdbf4eaac2cf56a3db12334991b284c5195bed2f8050f836a816308d SHA512 2f502fd78490ed2dc26884b05c9db32d6dcf8ed17ca3808299e528aa53ec13805e2be741d92d6a540b7dded011850cf033abe2e073f22f07e271c7c1c25c024b 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.4.1.crate 11567 BLAKE2B 520aeea740cfa30b0cca12f73594ffa655f32959673b1c9caaca1ea0162e455546ae3033881394c0ba0516bcd5c9a997da02162e1585522d665813b9096eabd9 SHA512 8c80e959d2f10a2893f9a71994720f90747742bb5b61fc0a539eed3ea5679b140c48fd7f7690d7122cd6af5f7f20a19d412e3569fe741c6d31f6b2ce1e0b80e8 diff --git a/dev-python/cryptography/cryptography-42.0.5-r1.ebuild b/dev-python/cryptography/cryptography-42.0.5-r1.ebuild deleted file mode 100644 index 0009b7b1518f..000000000000 --- a/dev-python/cryptography/cryptography-42.0.5-r1.ebuild +++ /dev/null @@ -1,137 +0,0 @@ -# Copyright 2021-2024 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -CARGO_OPTIONAL=yes -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -PYTHON_REQ_USE="threads(+)" - -CRATES=" -asn1-0.15.5 -asn1_derive-0.15.5 -autocfg-1.1.0 -base64-0.21.7 -bitflags-1.3.2 -bitflags-2.4.2 -cc-1.0.83 -cfg-if-1.0.0 -foreign-types-0.3.2 -foreign-types-shared-0.1.1 -heck-0.4.1 -indoc-2.0.4 -libc-0.2.152 -lock_api-0.4.11 -memoffset-0.9.0 -once_cell-1.19.0 -openssl-0.10.63 -openssl-macros-0.1.1 -openssl-sys-0.9.99 -parking_lot-0.12.1 -parking_lot_core-0.9.9 -pem-3.0.3 -pkg-config-0.3.29 -portable-atomic-1.6.0 -proc-macro2-1.0.78 -pyo3-0.20.3 -pyo3-build-config-0.20.3 -pyo3-ffi-0.20.3 -pyo3-macros-0.20.3 -pyo3-macros-backend-0.20.3 -quote-1.0.35 -redox_syscall-0.4.1 -scopeguard-1.2.0 -self_cell-1.0.3 -smallvec-1.13.1 -syn-2.0.48 -target-lexicon-0.12.13 -unicode-ident-1.0.12 -unindent-0.2.3 -vcpkg-0.2.15 -windows-targets-0.48.5 -windows_aarch64_gnullvm-0.48.5 -windows_aarch64_msvc-0.48.5 -windows_i686_gnu-0.48.5 -windows_i686_msvc-0.48.5 -windows_x86_64_gnu-0.48.5 -windows_x86_64_gnullvm-0.48.5 -windows_x86_64_msvc-0.48.5 -" - -inherit cargo distutils-r1 multiprocessing - -DESCRIPTION="Library providing cryptographic recipes and primitives" -HOMEPAGE=" - https://github.com/pyca/cryptography/ - https://pypi.org/project/cryptography/ -" -SRC_URI=" - https://github.com/pyca/cryptography/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz - $(cargo_crate_uris ${CRATES})" - -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" -IUSE="libressl" - -RDEPEND=" - !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) - libressl? ( <=dev-libs/libressl-3.8.1:= ) - $(python_gen_cond_dep ' - >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] - ' 'python*') -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - ${DEPEND} - 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}" - epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" -} diff --git a/dev-python/cryptography/cryptography-42.0.7.ebuild b/dev-python/cryptography/cryptography-42.0.7.ebuild new file mode 100644 index 000000000000..ae1a08bd370c --- /dev/null +++ b/dev-python/cryptography/cryptography-42.0.7.ebuild @@ -0,0 +1,143 @@ +# Copyright 2021-2024 Liguros 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_{8,9,10,11,12} ) +PYTHON_REQ_USE="threads(+)" + + +CRATES=" +asn1-0.15.5 +asn1_derive-0.15.5 +autocfg-1.1.0 +base64-0.21.7 +bitflags-1.3.2 +bitflags-2.4.2 +cc-1.0.83 +cfg-if-1.0.0 +foreign-types-0.3.2 +foreign-types-shared-0.1.1 +heck-0.4.1 +indoc-2.0.4 +libc-0.2.152 +lock_api-0.4.11 +memoffset-0.9.0 +once_cell-1.19.0 +openssl-0.10.64 +openssl-macros-0.1.1 +openssl-sys-0.9.102 +parking_lot-0.12.1 +parking_lot_core-0.9.9 +pem-3.0.3 +pkg-config-0.3.29 +portable-atomic-1.6.0 +proc-macro2-1.0.78 +pyo3-0.20.3 +pyo3-build-config-0.20.3 +pyo3-ffi-0.20.3 +pyo3-macros-0.20.3 +pyo3-macros-backend-0.20.3 +quote-1.0.35 +redox_syscall-0.4.1 +scopeguard-1.2.0 +self_cell-1.0.3 +smallvec-1.13.1 +syn-2.0.48 +target-lexicon-0.12.13 +unicode-ident-1.0.12 +unindent-0.2.3 +vcpkg-0.2.15 +windows-targets-0.48.5 +windows_aarch64_gnullvm-0.48.5 +windows_aarch64_msvc-0.48.5 +windows_i686_gnu-0.48.5 +windows_i686_msvc-0.48.5 +windows_x86_64_gnu-0.48.5 +windows_x86_64_gnullvm-0.48.5 +windows_x86_64_msvc-0.48.5 +" +inherit cargo distutils-r1 multiprocessing + +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=" + https://github.com/pyca/cryptography/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + $(cargo_crate_uris ${CRATES})" + +LICENSE="|| ( Apache-2.0 BSD ) PSF-2" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-DFS-2016 +" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv ~s390 sparc ~x86" +IUSE="libressl" + +RDEPEND=" + !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) + libressl? ( <=dev-libs/libressl-3.8.1:= ) + $(python_gen_cond_dep ' + >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] + ' 'python*') +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + >=dev-python/setuptools-rust-1.7.0[${PYTHON_USEDEP}] + >=virtual/rust-1.56.0 + 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() { + 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)" +} -- cgit v1.3