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-0.9.0.ebuild | 67 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest index ac6838780ae4..d4e0e747cbd9 100644 --- a/dev-python/requests-cache/Manifest +++ b/dev-python/requests-cache/Manifest @@ -1,3 +1,5 @@ DIST requests-cache-0.8.1.gh.tar.gz 1540290 BLAKE2B ac9d7cdaa553400484776236b13f356e4e80a7c3aa5e63563dad860302cb421b7ceeb61e80af436cf9559467c4b2cd5e8363ae05e703661b88bf3ac04601ee30 SHA512 245ee7059afab50f32af9c8831fe11c14d5bd53fe6bbf02e5844974e0e5ea6c33e005f234485f245ee418ae03277c6e2cc41046a385ff138e58785cf37b119ea +DIST requests-cache-0.9.0.gh.tar.gz 1539360 BLAKE2B 9eb09e84f53dc31fdaee2e72f961bff1582fe58cf0d33285e3d291ee10615c59cb9942a5480af48d840b7d4e3bcd8a7ec3367472478333c39cde579943b1b3ba SHA512 1f4879ddae34a10f014deb31c62fbe18c3d6a30ea10823d122aec4920ea4024eaf86c0b1a6f369b71f827ee87f049a5c2dad9fabe61aa6a5a62093fb08fa4a7c EBUILD requests-cache-0.8.1-r1.ebuild 1794 BLAKE2B 04abb4fb246fa326a2c7fe2a0de21dc2afc63013dbf63feec008e0a881bb01395922e0f428089a89de3b32514f5f51776e0ecbb3e39622e143a5a61de205b4b9 SHA512 fa3fcf504be9b36dc985238380e60b239c35c6d8eec87150b3928bea01354380d803c30b417f38f5a7acfa384a91a6dc2f632c903a713075307a38c60ad0d97e +EBUILD requests-cache-0.9.0.ebuild 1796 BLAKE2B 6af346758c97498dc4e7863fc80c3c312f60c7cde8b85f4d8c11a6946375d435d2f7fd7379c450df9c7823f4adb4085422bc1593e89500bd09653bc01ba49afd SHA512 75d1c1dd1833df63d28d054d2401ff8bc41c64a15c39a11e78122e1ffe394a372c72d6a92a3182c072dabcec07856d316c7e9ca08e0cd9e74dd5d7e5cad3d7ec MISC metadata.xml 470 BLAKE2B 83ea1b65050486c1ff410664b87a19e514102ec030ea0f3d4076d435503f6ad2dd16caf8ff0c947d064c93955a743fe45d14c4d64471613c9de65c33f6708b93 SHA512 54160c5daeea03d90c896e30f35ed6ce8e7a29280a5e1bb1d1b0c04b5899a48ed3261d400762bf9c92bb73ddb554bcaa533b620ecda691e43fe89c1d943b7b54 diff --git a/dev-python/requests-cache/requests-cache-0.9.0.ebuild b/dev-python/requests-cache/requests-cache-0.9.0.ebuild new file mode 100644 index 000000000000..bf43d1b00ca4 --- /dev/null +++ b/dev-python/requests-cache/requests-cache-0.9.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 optfeature + +HOMEPAGE=" + https://pypi.org/project/requests-cache/ + https://github.com/reclosedev/requests-cache/" +DESCRIPTION="Persistent cache for requests library" +SRC_URI=" + https://github.com/reclosedev/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[${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" +} |