summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-15 23:12:32 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-15 23:12:57 +0300
commit9b42afcec1aefe56bd5df58e7a69f3b61281bae5 (patch)
tree9b6ab747226007097ca0c2ff05b3d1aba0cdae86 /dev-python/cachecontrol
parentdev-python/regex: add 2022.9.13 (diff)
downloadgentoo-9b42afcec1aefe56bd5df58e7a69f3b61281bae5.tar.gz
gentoo-9b42afcec1aefe56bd5df58e7a69f3b61281bae5.tar.bz2
gentoo-9b42afcec1aefe56bd5df58e7a69f3b61281bae5.zip
dev-python/cachecontrol: add 0.12.12
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/cachecontrol')
-rw-r--r--dev-python/cachecontrol/Manifest1
-rw-r--r--dev-python/cachecontrol/cachecontrol-0.12.12.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/cachecontrol/Manifest b/dev-python/cachecontrol/Manifest
index 50764c5390a3..fc75ad50a76e 100644
--- a/dev-python/cachecontrol/Manifest
+++ b/dev-python/cachecontrol/Manifest
@@ -1 +1,2 @@
DIST cachecontrol-0.12.11.gh.tar.gz 41338 BLAKE2B 09ce2336216b69dbe9796d658db9f5b0d378259484cba3a78ecd789843e19683adc2b1b90d579cea8700d07ed55a93ecc3a56e5da2c8ab025e5084d2847d4dbf SHA512 be1c91f58edda36192f1267a8fdfdc50685ff57da5d84f5348b608982327993333f18f5c318a20cf258b16d2bc83272ba58317e8c4c44a84d5d1f93b522dfc8b
+DIST cachecontrol-0.12.12.gh.tar.gz 41909 BLAKE2B 1b36424e692beba817b650dfc493b78e99a99c7e1f27a845751d1372a926ce4750096aa3c608ea6c499d2bbb60b5410e18d963aeff1a3228cc835af0bd68c081 SHA512 d7477da4c3b64da2c9bbc1e65ee0a389d4631abd2aa7d7f2bbc66f96888dc036e717f8e4042f2adcd75215bdedce8626f7f4cb67c117d43ca546114f0fabd65c
diff --git a/dev-python/cachecontrol/cachecontrol-0.12.12.ebuild b/dev-python/cachecontrol/cachecontrol-0.12.12.ebuild
new file mode 100644
index 000000000000..4dde1a489c2f
--- /dev/null
+++ b/dev-python/cachecontrol/cachecontrol-0.12.12.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="httplib2 caching for requests"
+HOMEPAGE="
+ https://pypi.org/project/CacheControl/
+ https://github.com/ionrock/cachecontrol/
+"
+SRC_URI="
+ https://github.com/ionrock/cachecontrol/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/msgpack-0.5.2[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/cherrypy[${PYTHON_USEDEP}]
+ dev-python/filelock[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -e 's/setuptools.find_packages(/&exclude=["tests", "tests.*"]/' -i setup.py || die
+ distutils-r1_src_prepare
+}