diff options
Diffstat (limited to 'dev-python/requests-cache')
-rw-r--r-- | dev-python/requests-cache/Manifest | 2 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-1.0.0.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest index 6e203e4d7cf4..32dc2be03f80 100644 --- a/dev-python/requests-cache/Manifest +++ b/dev-python/requests-cache/Manifest @@ -1,3 +1,5 @@ DIST requests-cache-0.9.8.gh.tar.gz 1540296 BLAKE2B 8b2ab1227b28c3822cd9111375c8759f5d7099f2724680a6560e4e14cd16558a1dcb8dd98d043fdf2f9a3861d76dd0d2c2f84df059338e9fa28c1257e74e87b9 SHA512 f428a7b498d2ef2b6c23d3715bac2274c320b6f9d6f56017e69ab5fa6b8830242a2f335ed6c3758a741a51f108c6dacae1a447ff8f05ca5686303caf48a1dc59 +DIST requests-cache-1.0.0.gh.tar.gz 2914633 BLAKE2B 5402d3b6bc99bb0b72a484854b83450d8f57fd0aff39661d6f2452c69cc0ca9b140fd2ac7b02110e47bcc0bf2497c58912330d7472b9f1701b8d4e2a54f7cef7 SHA512 92d6e1b9afb158f824a4b20d83c7b30a5988476b741213b0663df6095df1753da2dcd6516372ba383864e19d346850a356e9370b2ae27554effcc3f0b6a078c8 EBUILD requests-cache-0.9.8.ebuild 1798 BLAKE2B dec2bba9653b432876434d37c587ba5f01325ca600008ef22164973d795e3e056fdc632b8033f8516dfd1e4be0a26417453aee595adb243fa482a1c8336c598c SHA512 3441bfc66c25d93c3bc57a8e1077a4c56da32146f80dd5c0c15d9a2cc3429e0f410d53f5b9d2c0775c38e46e96ab9cf9dbb62e6bcc57c7483d07584c652dda6a +EBUILD requests-cache-1.0.0.ebuild 1818 BLAKE2B f5b5e4c9e8fc99a44431e35e648039388395103ccfd73c5c98f4ee41e712ac6da34ba1369835f055ce71e0010efc149bf9ac8204d273db844ec1d666500fa23a SHA512 b9a109f1541fdca776dfa8568b0fab644d5d2cf23e3f2c6c8dc5c3fefa8f4bd79135318339322cdfe059420bc333df432148f0551ae350b033ccd7b8f6b84e14 MISC metadata.xml 541 BLAKE2B a8fd81921a36e2fe5bdec38cc1039b9e91971c992a59cbe2dc4826977f753bd6cd2533f65b5f1a076308a898972fe70e85a2c8cf480259e9801f51b10c4de8a4 SHA512 64f29b67eaf3ce892a9f918abd7eaf8f020323e9e0d986b424cffc83e3ac1ba5cb14b534f0a0ec73a8e81694ca4e0e7f98ef02968ac5b43dab104b2b12e8e0f2 diff --git a/dev-python/requests-cache/requests-cache-1.0.0.ebuild b/dev-python/requests-cache/requests-cache-1.0.0.ebuild new file mode 100644 index 000000000000..8e51d738f7ff --- /dev/null +++ b/dev-python/requests-cache/requests-cache-1.0.0.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_{9..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/cattrs-22.2[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.5[${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-5.4[${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_upgrade.py::test_version_upgrade + ) + + local -x USE_PYTEST_HTTPBIN=true + epytest +} + +pkg_postinst() { + optfeature "redis backend" "dev-python/redis" + 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" +} |