From f4fc10428424904caf2035cffc442195cb088b2c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Jul 2021 10:27:13 +0100 Subject: gentoo resync : 28.07.2021 --- dev-python/cryptography/Manifest | 2 +- .../cryptography/cryptography-3.4.7-r1.ebuild | 72 -------------------- .../cryptography/cryptography-3.4.7-r2.ebuild | 76 ++++++++++++++++++++++ 3 files changed, 77 insertions(+), 73 deletions(-) delete mode 100644 dev-python/cryptography/cryptography-3.4.7-r1.ebuild create mode 100644 dev-python/cryptography/cryptography-3.4.7-r2.ebuild (limited to 'dev-python/cryptography') diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest index 325160741a05..3dcf43a7020e 100644 --- a/dev-python/cryptography/Manifest +++ b/dev-python/cryptography/Manifest @@ -1,5 +1,5 @@ AUX cryptography-3.4.7-py310.patch 8611 BLAKE2B 6cabc8056658f6a0c895a75b287ebfaa3d25c4ba9f95e28bf63c34bb87ccccdb4b04e42c5d72fdb4d889560e1ca13c602755fa05b9bab3b1fe05788abe110964 SHA512 d1c89a6c50fd4032d6aedcf026592b52b1e38922ecc2a83e8defcee5b7b4845a66de45de897fd3c2022c6118591811b9fc25df7fdd33d219647e0923cd906a66 DIST cryptography-3.4.7.tar.gz 546893 BLAKE2B 49bc1e098ed1ba0181059b645f6668cda6332d196eaca55270ebce6e07e5bb6ab6724c5050fde20e89b7025773960d74ec782bb875badbbd5dc9a04db0a536f1 SHA512 3c4cf64bc0b067ccdbb71efe04c32ac9d673faea6cc4ccd13d6b1b61920be4785806d19359b7657d032a2ff1c011a8b4f16ec4924d9df8a59d1a875a7f844473 DIST cryptography_vectors-3.4.7.tar.gz 35168102 BLAKE2B fbefd3ff96548dde012fd290aba1c99d57db376023d486910e486cc9c143461ef1ae9b77824cc03307723d35142f0360bc961b548a4edc02357d3f1a0e7e4e9f SHA512 269b50fa4c5300da6758006d12be42f998630d23053ef9af0eb588fc9e6994b044d8822cff105e338f4d0d746ed0e204a4a9c42f54667e355e1ce86e6754bbe9 -EBUILD cryptography-3.4.7-r1.ebuild 1930 BLAKE2B 7dd5447b2d3190bdd73c9debb4a35b5c6be7bf235b7e949c2a3998beff5381c07e40a7b75f981c53510b1b435b0fff5f1e823e6713a83ee9d932ffb946adbdbd SHA512 8ceb657fd2d8e9d5d6847aa4774b47e6d3beafef817e9cc5d8aaf5f0d06c7f87bdc2a63dcd68ed1718849c59bb714fbd8cdcf6df34c64375b0a320dbb8e6b829 +EBUILD cryptography-3.4.7-r2.ebuild 2080 BLAKE2B ab2d65326c4465b0bc20da266317f9fd6552fc3dac2b4249099cdc5671bd372e37267b1ffa53d7ac1bd1c425e965a3f203081280f5517a295556afc1b0c43b42 SHA512 fe4ee78741c32fbeb01bee53a4cc6cdfda9960568feac8f38d6e06952b3532fa7d5789e70a85895746e2cca840b365e4d7dc6ba5e52c4237f296cee95659eb9d MISC metadata.xml 384 BLAKE2B 6dbfdd39bb24b2df61454716e308605ae1d35c3babd01f16556bbbab240e425434315cb2b80a2c3e8e9b18b237899b5fb96566a7ffefde2af3af1dcc2e08362b SHA512 c2806f846608bdd0720b589494e13f57ab2d64026747f2b13f412c9a0e9d2bef6b16fc357e4d16b74ad7a2a2af8daa5e28d0b6bfe4d2141ce68881c724fd24c7 diff --git a/dev-python/cryptography/cryptography-3.4.7-r1.ebuild b/dev-python/cryptography/cryptography-3.4.7-r1.ebuild deleted file mode 100644 index 0bc251d53b55..000000000000 --- a/dev-python/cryptography/cryptography-3.4.7-r1.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..10} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 multiprocessing - -VEC_P=cryptography_vectors-${PV} -DESCRIPTION="Library providing cryptographic recipes and primitives" -HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" - -LICENSE="|| ( Apache-2.0 BSD )" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" - -RDEPEND=" - $(python_gen_cond_dep ' - >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] - ' 'python*') - " -BDEPEND=" - 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/pytz[${PYTHON_USEDEP}] - dev-python/pytest-subtests[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -DEPEND=" - >=dev-libs/openssl-1.0.2o-r6:0= - " -RDEPEND+=${DEPEND} - -PATCHES=( - "${FILESDIR}/${P}-py310.patch" -) - -src_prepare() { - default - - # 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 - - # this version does not really use Rust, it just creates a dummy - # extension to break stuff - export CRYPTOGRAPHY_DONT_BUILD_RUST=1 - sed -e 's:from setuptools_rust import RustExtension:pass:' \ - -e '/setup_requires/d' \ - -i setup.py || die -} - -python_test() { - local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} - epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" -} diff --git a/dev-python/cryptography/cryptography-3.4.7-r2.ebuild b/dev-python/cryptography/cryptography-3.4.7-r2.ebuild new file mode 100644 index 000000000000..57dc03c410a8 --- /dev/null +++ b/dev-python/cryptography/cryptography-3.4.7-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 multiprocessing + +VEC_P=cryptography_vectors-${PV} +DESCRIPTION="Library providing cryptographic recipes and primitives" +HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" + +LICENSE="|| ( Apache-2.0 BSD )" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] + ' 'python*') + " +BDEPEND=" + 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/pytz[${PYTHON_USEDEP}] + dev-python/pytest-subtests[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +DEPEND=" + >=dev-libs/openssl-1.0.2o-r6:0= + " +RDEPEND+=${DEPEND} + +PATCHES=( + "${FILESDIR}/${P}-py310.patch" +) + +src_prepare() { + default + + # avoid automagic dependency on dev-libs/openssl[sslv3] + # https://bugs.gentoo.org/789450 + export CPPFLAGS="${CPPFLAGS} -DOPENSSL_NO_SSL3_METHOD=1" + + # 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 + + # this version does not really use Rust, it just creates a dummy + # extension to break stuff + export CRYPTOGRAPHY_DONT_BUILD_RUST=1 + sed -e 's:from setuptools_rust import RustExtension:pass:' \ + -e '/setup_requires/d' \ + -i setup.py || die +} + +python_test() { + local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} + epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} -- cgit v1.2.3