Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cryptography/
Date: Sat, 09 Apr 2022 18:42:34
Message-Id: 1649529607.d6a5cedd33059d77eee94e6ee4c216acc0105c13.mgorny@gentoo
1 commit: d6a5cedd33059d77eee94e6ee4c216acc0105c13
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 18:40:07 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 18:40:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a5cedd
7
8 dev-python/cryptography: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../cryptography/cryptography-3.4.7-r2.ebuild | 76 ----------------------
13 1 file changed, 76 deletions(-)
14
15 diff --git a/dev-python/cryptography/cryptography-3.4.7-r2.ebuild b/dev-python/cryptography/cryptography-3.4.7-r2.ebuild
16 deleted file mode 100644
17 index 6f1e87cf55b4..000000000000
18 --- a/dev-python/cryptography/cryptography-3.4.7-r2.ebuild
19 +++ /dev/null
20 @@ -1,76 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -PYTHON_COMPAT=( python3_{7..10} pypy3 )
27 -PYTHON_REQ_USE="threads(+)"
28 -
29 -inherit distutils-r1 multiprocessing
30 -
31 -VEC_P=cryptography_vectors-${PV}
32 -DESCRIPTION="Library providing cryptographic recipes and primitives"
33 -HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/"
34 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
35 - test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )"
36 -
37 -LICENSE="|| ( Apache-2.0 BSD )"
38 -SLOT="0"
39 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
40 -
41 -RDEPEND="
42 - $(python_gen_cond_dep '
43 - >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]
44 - ' 'python*')
45 - "
46 -BDEPEND="
47 - test? (
48 - >=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}]
49 - dev-python/iso8601[${PYTHON_USEDEP}]
50 - dev-python/pretend[${PYTHON_USEDEP}]
51 - dev-python/pyasn1-modules[${PYTHON_USEDEP}]
52 - dev-python/pytz[${PYTHON_USEDEP}]
53 - dev-python/pytest-subtests[${PYTHON_USEDEP}]
54 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
55 - )"
56 -
57 -distutils_enable_tests pytest
58 -
59 -DEPEND="
60 - >=dev-libs/openssl-1.0.2o-r6:0=
61 - "
62 -RDEPEND+=${DEPEND}
63 -
64 -PATCHES=(
65 - "${FILESDIR}/${P}-py310.patch"
66 -)
67 -
68 -src_prepare() {
69 - default
70 -
71 - # avoid automagic dependency on dev-libs/openssl[sslv3]
72 - # https://bugs.gentoo.org/789450
73 - export CPPFLAGS="${CPPFLAGS} -DOPENSSL_NO_SSL3_METHOD=1"
74 -
75 - # work around availability macros not supported in GCC (yet)
76 - if [[ ${CHOST} == *-darwin* ]] ; then
77 - local darwinok=0
78 - if [[ ${CHOST##*-darwin} -ge 16 ]] ; then
79 - darwinok=1
80 - fi
81 - sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \
82 - src/_cffi_src/openssl/src/osrandom_engine.c || die
83 - fi
84 -
85 - # this version does not really use Rust, it just creates a dummy
86 - # extension to break stuff
87 - export CRYPTOGRAPHY_DONT_BUILD_RUST=1
88 - sed -e 's:from setuptools_rust import RustExtension:pass:' \
89 - -e '/setup_requires/d' \
90 - -i setup.py || die
91 -}
92 -
93 -python_test() {
94 - local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P}
95 - epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
96 -}