diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-14 20:44:04 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-14 20:44:04 +0000 |
commit | 46227d4bea72a4d588141f40667699df3aeef2b0 (patch) | |
tree | fe9f107ad101a24dfb24866d1ae2a933f9f8bbe8 /dev-python/elastic-transport/elastic-transport-8.11.0.ebuild | |
parent | 349911d45bc38140a6a32c0971e0ab5cdc4de9ac (diff) |
gentoo auto-resync : 14:12:2023 - 20:44:04
Diffstat (limited to 'dev-python/elastic-transport/elastic-transport-8.11.0.ebuild')
-rw-r--r-- | dev-python/elastic-transport/elastic-transport-8.11.0.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/elastic-transport/elastic-transport-8.11.0.ebuild b/dev-python/elastic-transport/elastic-transport-8.11.0.ebuild new file mode 100644 index 000000000000..a59158b08eaa --- /dev/null +++ b/dev-python/elastic-transport/elastic-transport-8.11.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +MY_P=elastic-transport-python-${PV} +DESCRIPTION="Transport classes and utilities shared among Python Elastic client libraries" +HOMEPAGE=" + https://github.com/elastic/elastic-transport-python/ + https://pypi.org/project/elastic-transport/ +" +SRC_URI=" + https://github.com/elastic/elastic-transport-python/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND=" + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-httpserver[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/sphinx \ + dev-python/furo \ + dev-python/sphinx-autodoc-typehints +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e 's:, *<[0-9.]*::' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # fragile to random warnings + tests/node/test_http_aiohttp.py::TestAiohttpHttpNode::test_uses_https_if_verify_certs_is_off + tests/node/test_urllib3_chain_certs.py::test_assert_fingerprint_in_cert_chain + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -o addopts= +} |