commit:     533951ed3d665f23395f07c4b3265452236aa34f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 14 04:10:57 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 14 04:57:00 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=533951ed

dev-python/requests-cache: Bump to 0.9.8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/requests-cache/Manifest                 |  1 +
 .../requests-cache/requests-cache-0.9.8.ebuild     | 71 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/dev-python/requests-cache/Manifest 
b/dev-python/requests-cache/Manifest
index a201dbf13543..9672af141860 100644
--- a/dev-python/requests-cache/Manifest
+++ b/dev-python/requests-cache/Manifest
@@ -1 +1,2 @@
 DIST requests-cache-0.9.7.gh.tar.gz 1544100 BLAKE2B 
a255d3cce0345ff03e020327c10a1d8cc25e519069764b7e3e1a43a0e5cd899aec824e3c147561796cba1f269550505f881cf913d909ce7e6c52e8f76ad9688a
 SHA512 
00b2c7080030ed07f5d896871a431aec2625dab6ab84f01f7e6fea9e81692f757304e25ee6addbe7695e93d0c1c04484c31b95a71d7c9e12f6c23a5b7747ae30
+DIST requests-cache-0.9.8.gh.tar.gz 1540296 BLAKE2B 
8b2ab1227b28c3822cd9111375c8759f5d7099f2724680a6560e4e14cd16558a1dcb8dd98d043fdf2f9a3861d76dd0d2c2f84df059338e9fa28c1257e74e87b9
 SHA512 
f428a7b498d2ef2b6c23d3715bac2274c320b6f9d6f56017e69ab5fa6b8830242a2f335ed6c3758a741a51f108c6dacae1a447ff8f05ca5686303caf48a1dc59

diff --git a/dev-python/requests-cache/requests-cache-0.9.8.ebuild 
b/dev-python/requests-cache/requests-cache-0.9.8.ebuild
new file mode 100644
index 000000000000..af5783401da0
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.9.8.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1 optfeature
+
+HOMEPAGE="
+       https://pypi.org/project/requests-cache/
+       https://github.com/requests-cache/requests-cache/
+"
+DESCRIPTION="Persistent cache for requests library"
+SRC_URI="
+       https://github.com/requests-cache/requests-cache/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/attrs[${PYTHON_USEDEP}]
+       dev-python/appdirs[${PYTHON_USEDEP}]
+       >=dev-python/cattrs-22.2[${PYTHON_USEDEP}]
+       >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
+       dev-python/urllib3[${PYTHON_USEDEP}]
+       >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/itsdangerous[${PYTHON_USEDEP}]
+               dev-python/pytest-httpbin[${PYTHON_USEDEP}]
+               dev-python/requests-mock[${PYTHON_USEDEP}]
+               dev-python/responses[${PYTHON_USEDEP}]
+               dev-python/timeout-decorator[${PYTHON_USEDEP}]
+               dev-python/ujson[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_IGNORE=(
+               # These require extra servers running
+               tests/integration/test_dynamodb.py
+               tests/integration/test_gridfs.py
+               tests/integration/test_mongodb.py
+               tests/integration/test_redis.py
+       )
+       local EPYTEST_DESELECT=(
+               # Requires Internet access
+               tests/integration/test_compat.py::test_version_upgrade
+       )
+
+       local -x USE_PYTEST_HTTPBIN=true
+       epytest
+}
+
+pkg_postinst() {
+       optfeature "redis backend" "dev-python/redis-py"
+       optfeature "MongoDB backend" "dev-python/pymongo"
+
+       optfeature "JSON serialization" "dev-python/ujson"
+       optfeature "YAML serialization" "dev-python/pyyaml"
+       optfeature "signing serialized data" "dev-python/itsdangerous"
+}

Reply via email to