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/pyopenssl/
Date: Fri, 27 May 2022 19:55:47
Message-Id: 1653681278.27b1d1eddeece850a69abd68f31cd7c9a0b3d1f1.mgorny@gentoo
1 commit: 27b1d1eddeece850a69abd68f31cd7c9a0b3d1f1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 19:54:38 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 19:54:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27b1d1ed
7
8 dev-python/pyopenssl: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyopenssl/pyopenssl-20.0.1.ebuild | 68 ----------------------------
13 1 file changed, 68 deletions(-)
14
15 diff --git a/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild b/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild
16 deleted file mode 100644
17 index eadda66ac57d..000000000000
18 --- a/dev-python/pyopenssl/pyopenssl-20.0.1.ebuild
19 +++ /dev/null
20 @@ -1,68 +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 toolchain-funcs
30 -
31 -MY_PN=pyOpenSSL
32 -MY_P=${MY_PN}-${PV}
33 -
34 -DESCRIPTION="Python interface to the OpenSSL library"
35 -HOMEPAGE="
36 - https://www.pyopenssl.org/
37 - https://pypi.org/project/pyOpenSSL/
38 - https://github.com/pyca/pyopenssl/
39 -"
40 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
41 -S=${WORKDIR}/${MY_P}
42 -
43 -LICENSE="Apache-2.0"
44 -SLOT="0"
45 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 -
47 -RDEPEND="
48 - >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
49 - >=dev-python/cryptography-3.2[${PYTHON_USEDEP}]"
50 -BDEPEND="
51 - test? (
52 - virtual/python-cffi[${PYTHON_USEDEP}]
53 - dev-python/flaky[${PYTHON_USEDEP}]
54 - dev-python/pretend[${PYTHON_USEDEP}]
55 - >=dev-python/pytest-3.0.1[${PYTHON_USEDEP}]
56 - )"
57 -
58 -distutils_enable_sphinx doc \
59 - dev-python/sphinx_rtd_theme
60 -distutils_enable_tests pytest
61 -
62 -src_configure() {
63 - # test for 32-bit time_t
64 - "$(tc-getCC)" ${CFLAGS} ${CPPFLAGS} -c -x c - -o /dev/null <<-EOF &>/dev/null
65 - #include <sys/types.h>
66 - int test[sizeof(time_t) >= 8 ? 1 : -1];
67 - EOF
68 -
69 - if [[ ${?} -eq 0 ]]; then
70 - PYOPENSSL_SKIP_LARGE_TIME=
71 - einfo "time_t is at least 64-bit long"
72 - else
73 - PYOPENSSL_SKIP_LARGE_TIME=1
74 - einfo "time_t is smaller than 64 bits, will skip broken tests"
75 - fi
76 -}
77 -
78 -python_test() {
79 - local -x TZ=UTC
80 - local deselect=(
81 - tests/test_ssl.py::TestContext::test_set_default_verify_paths
82 - )
83 - [[ ${PYOPENSSL_SKIP_LARGE_TIME} ]] && deselect+=(
84 - tests/test_crypto.py::TestX509StoreContext::test_verify_with_time
85 - )
86 -
87 - epytest ${deselect[@]/#/--deselect }
88 -}