dev-python/cachecontrol: Sync with Gentoo

It's from Gentoo commit 86e866a417d9c7f12632c9b9e044695f765d8d54.
This commit is contained in:
Flatcar Buildbot 2025-04-28 07:13:31 +00:00
parent dcf089bcd0
commit 09eb976684
2 changed files with 47 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST cachecontrol-0.14.1.tar.gz 28928 BLAKE2B 9f01bc35c905f0fb489e796f96ccc0063a475bacc24b980ee67f8053412a52d9167b4b96495a8a7f7c561e2485a1b6fcb4ec94b1408ea5111f8661fea59394fd SHA512 f99463ee08199058d0f84a173d6a85276cfe6caec0bec6692e5af74f4c8e684a68ab6910c6c85cbd1f4515c7044ee2fbf149cfd85e4ce9d9ac97e9850698c07f
DIST cachecontrol-0.14.2.tar.gz 28832 BLAKE2B fc572206871a39a2d4c50d0970b9aa2c58f9c99b28ab9bf98e76fad8c3f6e89962e84d368287d7d4beab1fcf16666e42a46a11e194c26f3c487359b767d8d77f SHA512 694dc7dfc976a4087471119a8d5f4b76aa08d62f814293d183331164a4225e8d6f9cbf58551ad806ea9e4bb4adac0d98bb54d7aa09ef4a64feff93a8899c4a58

View File

@ -0,0 +1,46 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="httplib2 caching for requests"
HOMEPAGE="
https://pypi.org/project/CacheControl/
https://github.com/psf/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}]
)
"
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
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}