summaryrefslogtreecommitdiff
path: root/dev-python/cachecontrol/cachecontrol-0.14.3.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/cachecontrol/cachecontrol-0.14.3.ebuild')
-rw-r--r--dev-python/cachecontrol/cachecontrol-0.14.3.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/cachecontrol/cachecontrol-0.14.3.ebuild b/dev-python/cachecontrol/cachecontrol-0.14.3.ebuild
new file mode 100644
index 000000000000..cbd273d6ed92
--- /dev/null
+++ b/dev-python/cachecontrol/cachecontrol-0.14.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYPI_VERIFY_REPO=https://github.com/psf/cachecontrol
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="httplib2 caching for requests"
+HOMEPAGE="
+ https://github.com/psf/cachecontrol/
+ https://pypi.org/project/CacheControl/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
+
+RDEPEND="
+ <dev-python/msgpack-2[${PYTHON_USEDEP}]
+ >=dev-python/msgpack-0.5.2[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.16.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/cherrypy[${PYTHON_USEDEP}]
+ >=dev-python/filelock-3.8.0[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+
+ if [[ ${EPYTHON} == pypy3* ]]; then
+ EPYTEST_DESELECT+=(
+ tests/test_adapter.py::TestSessionActions::test_do_not_leak_response
+ )
+ fi
+
+ epytest
+}