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/httpcore/
Date: Mon, 07 Nov 2022 04:39:34
Message-Id: 1667795967.cfb41d320c1fb076d8e4af2310694bc74041d226.mgorny@gentoo
1 commit: cfb41d320c1fb076d8e4af2310694bc74041d226
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 7 04:35:58 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 7 04:39:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfb41d32
7
8 dev-python/httpcore: Backport >=dev-python/h11-0.14 support
9
10 Closes: https://bugs.gentoo.org/880117
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/httpcore/Manifest | 1 +
14 dev-python/httpcore/httpcore-0.15.0-r1.ebuild | 54 +++++++++++++++++++++++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest
18 index 616aa6598a01..86c5e39cc0a0 100644
19 --- a/dev-python/httpcore/Manifest
20 +++ b/dev-python/httpcore/Manifest
21 @@ -1 +1,2 @@
22 +DIST httpcore-0.15.0-h11-0.14.patch 7087 BLAKE2B 08a7b1a155392637cea9b6d59d01fc60b7a73416db9d87eb2477843cf6c46d1f4e342ce1b4b3ed362f0bf9d4dea7dca40dc7496c0b04a698c8924df7cbdb7f5f SHA512 9235d06a53b1839d7df945499f666477627dca5cbccde98b52d571d1d50380eb74b8d1b6538ea1cf5150062476780e5bf96290910c7c5513199d696f765a6868
23 DIST httpcore-0.15.0.gh.tar.gz 76220 BLAKE2B e9a346d4f77cde82be5a3eb468123ae453753e57b54382f0b2c60b16afd3433cba173d9a796df20d76edbd8b5bcf2d61c32302bdd30c8d587036b3ac6f0425fd SHA512 3c25630d582448e3c7d46176c8862e4d92c6c4aac954bfe46b06e26297b32f996db2e002a87c7187accb5bf4ef86e82d7f9051404bee651ce5254119571d0c95
24
25 diff --git a/dev-python/httpcore/httpcore-0.15.0-r1.ebuild b/dev-python/httpcore/httpcore-0.15.0-r1.ebuild
26 new file mode 100644
27 index 000000000000..35bc983a2b8e
28 --- /dev/null
29 +++ b/dev-python/httpcore/httpcore-0.15.0-r1.ebuild
30 @@ -0,0 +1,54 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
38 +
39 +inherit distutils-r1 optfeature
40 +
41 +DESCRIPTION="A minimal low-level HTTP client"
42 +HOMEPAGE="
43 + https://www.encode.io/httpcore/
44 + https://github.com/encode/httpcore/
45 + https://pypi.org/project/httpcore/
46 +"
47 +SRC_URI="
48 + https://github.com/encode/httpcore/archive/${PV}.tar.gz
49 + -> ${P}.gh.tar.gz
50 + https://github.com/encode/httpcore/commit/4cf288e0007cb73561b9020af9228f076ba2a94e.patch
51 + -> ${P}-h11-0.14.patch
52 +"
53 +
54 +LICENSE="BSD"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
57 +
58 +RDEPEND="
59 + =dev-python/anyio-3*[${PYTHON_USEDEP}]
60 + dev-python/certifi[${PYTHON_USEDEP}]
61 + <dev-python/h11-0.15[${PYTHON_USEDEP}]
62 + <dev-python/h2-5[${PYTHON_USEDEP}]
63 + =dev-python/sniffio-1*[${PYTHON_USEDEP}]
64 +"
65 +BDEPEND="
66 + test? (
67 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
68 + dev-python/pytest-httpbin[${PYTHON_USEDEP}]
69 + dev-python/pytest-trio[${PYTHON_USEDEP}]
70 + dev-python/socksio[${PYTHON_USEDEP}]
71 + dev-python/trio[${PYTHON_USEDEP}]
72 + dev-python/trustme[${PYTHON_USEDEP}]
73 + )
74 +"
75 +
76 +distutils_enable_tests pytest
77 +
78 +PATCHES=(
79 + "${DISTDIR}"/${P}-h11-0.14.patch
80 +)
81 +
82 +pkg_postinst() {
83 + optfeature "SOCKS support" dev-python/socksio
84 +}