blob: c66c3fd9f07789a35e5837e9ffa963d8175a0596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_VERIFY_REPO=https://github.com/karpetrosyan/httpx-aiohttp
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 pypi
DESCRIPTION="Aiohttp transport for HTTPX"
HOMEPAGE="
https://github.com/karpetrosyan/httpx-aiohttp
https://pypi.org/project/httpx-aiohttp/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
RDEPEND="
>=dev-python/aiohttp-3.10.0[${PYTHON_USEDEP}]
<dev-python/aiohttp-4[${PYTHON_USEDEP}]
>=dev-python/httpx-0.27.0[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
test? (
>=dev-python/httpx2-2.0[${PYTHON_USEDEP}]
<dev-python/httpx2-3[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( anyio pytest-asyncio )
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Requires network access to httpbin.org
tests/local/test_aiohttp_client.py::test_response_is_closed_after_request
)
# tests/httpx is a git submodule (a fork of the httpx test suite) that is not
# part of the sdist. Upstream's own scripts/test only runs tests/local, which
# is shipped.
python_test() {
epytest tests/local
}
|