diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-11-16 18:52:08 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-11-16 18:52:08 +0000 |
| commit | a411567952470150493309d32923643e525379cf (patch) | |
| tree | 2499a9ef0e8de97aa74b73002c1c7cdc26d97dc6 /dev-python/httpcore/httpcore-1.0.7.ebuild | |
| parent | fe3f7024e2ba56550434f41db8e273f8b5b66bf2 (diff) | |
| download | baldeagleos-repo-a411567952470150493309d32923643e525379cf.tar.gz baldeagleos-repo-a411567952470150493309d32923643e525379cf.tar.xz baldeagleos-repo-a411567952470150493309d32923643e525379cf.zip | |
Adding metadata
Diffstat (limited to 'dev-python/httpcore/httpcore-1.0.7.ebuild')
| -rw-r--r-- | dev-python/httpcore/httpcore-1.0.7.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/httpcore/httpcore-1.0.7.ebuild b/dev-python/httpcore/httpcore-1.0.7.ebuild new file mode 100644 index 000000000000..c407a9253870 --- /dev/null +++ b/dev-python/httpcore/httpcore-1.0.7.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A minimal low-level HTTP client" +HOMEPAGE=" + https://www.encode.io/httpcore/ + https://github.com/encode/httpcore/ + https://pypi.org/project/httpcore/ +" +SRC_URI=" + https://github.com/encode/httpcore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + <dev-python/anyio-5[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + <dev-python/h11-0.15[${PYTHON_USEDEP}] + <dev-python/h2-5[${PYTHON_USEDEP}] + =dev-python/sniffio-1*[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/socksio[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pytest-trio[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ' 3.{10..13}) + ) +" + +distutils_enable_tests pytest + +python_test() { + local opts=() + local EPYTEST_IGNORE=() + + if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then + opts+=( -k "not trio" ) + EPYTEST_IGNORE+=( + tests/_async/test_connection_pool.py + ) + fi + + if ! has_version "dev-python/pytest-trio[${PYTHON_USEDEP}]"; then + opts+=( -m "not trio" -o addopts= ) + fi + + epytest "${opts[@]}" +} + +pkg_postinst() { + optfeature "SOCKS support" dev-python/socksio +} |
