1 |
commit: 689ee23e8d631f75a167013bfe938be6ebfb0f82 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 12 15:43:01 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 12 16:17:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=689ee23e |
7 |
|
8 |
dev-python/h2: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/h2/h2-3.2.0-r1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++ |
13 |
dev-python/h2/h2-4.1.0-r1.ebuild | 3 ++- |
14 |
2 files changed, 60 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/h2/h2-3.2.0-r1.ebuild b/dev-python/h2/h2-3.2.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..315f6e2408b2 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/h2/h2-3.2.0-r1.ebuild |
21 |
@@ -0,0 +1,58 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+MY_P=hyper-h2-${PV} |
33 |
+DESCRIPTION="HTTP/2 State-Machine based protocol implementation" |
34 |
+HOMEPAGE=" |
35 |
+ https://python-hyper.org/projects/h2/en/stable/ |
36 |
+ https://github.com/python-hyper/h2/ |
37 |
+ https://pypi.org/project/h2/ |
38 |
+" |
39 |
+SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
40 |
+S=${WORKDIR}/${MY_P} |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ >=dev-python/hyperframe-5.2.0[${PYTHON_USEDEP}] |
48 |
+ <dev-python/hyperframe-6.0.0[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/hpack-3.0.0[${PYTHON_USEDEP}] |
50 |
+ <dev-python/hpack-4.0.0[${PYTHON_USEDEP}] |
51 |
+" |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+distutils_enable_tests pytest |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ # From https://github.com/python-hyper/h2/pull/1248 |
62 |
+ # Disables some failing healthchecks |
63 |
+ "${FILESDIR}/hyper-h2-3.2.0-failed-healthcheck.patch" |
64 |
+) |
65 |
+ |
66 |
+python_test() { |
67 |
+ local EPYTEST_DESELECT=() |
68 |
+ [[ ${EPYTHON} == python3.1[01] ]] && EPYTEST_DESELECT+=( |
69 |
+ # these rely on fixed string repr() and fail because enum repr |
70 |
+ # changed in py3.10 |
71 |
+ test/test_basic_logic.py::TestBasicServer::test_stream_repr |
72 |
+ test/test_events.py::TestEventReprs::test_remotesettingschanged_repr |
73 |
+ test/test_events.py::TestEventReprs::test_streamreset_repr |
74 |
+ test/test_events.py::TestEventReprs::test_settingsacknowledged_repr |
75 |
+ test/test_events.py::TestEventReprs::test_connectionterminated_repr |
76 |
+ ) |
77 |
+ |
78 |
+ epytest --hypothesis-profile=travis |
79 |
+} |
80 |
|
81 |
diff --git a/dev-python/h2/h2-4.1.0-r1.ebuild b/dev-python/h2/h2-4.1.0-r1.ebuild |
82 |
index cb38a68436d4..8351e85531d2 100644 |
83 |
--- a/dev-python/h2/h2-4.1.0-r1.ebuild |
84 |
+++ b/dev-python/h2/h2-4.1.0-r1.ebuild |
85 |
@@ -12,7 +12,8 @@ DESCRIPTION="HTTP/2 State-Machine based protocol implementation" |
86 |
HOMEPAGE=" |
87 |
https://python-hyper.org/projects/h2/en/stable/ |
88 |
https://github.com/python-hyper/h2/ |
89 |
- https://pypi.org/project/h2/" |
90 |
+ https://pypi.org/project/h2/ |
91 |
+" |
92 |
SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
93 |
|
94 |
LICENSE="MIT" |