[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/10] gnu: Add python-cachecontrol.
From: |
Ben Woodcroft |
Subject: |
[PATCH v2 06/10] gnu: Add python-cachecontrol. |
Date: |
Sun, 24 Apr 2016 23:06:20 +1000 |
* gnu/packages/python.scm (python-cachecontrol, python2-cachecontrol):
New variables.
---
gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 28eebf1..ccd4a28 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8849,6 +8849,37 @@ to support both Python 2 and Python 3 with minimal
overhead.")
(inherit base)
(native-inputs `(("python2-setuptools" ,python2-setuptools))))))
+(define-public python-cachecontrol
+ (package
+ (name "python-cachecontrol")
+ (version "0.11.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "CacheControl" version))
+ (sha256
+ (base32
+ "15bn8xll6z15h0zqhfjy1n8dn8p0fcb4m0rhnfanq63z7r2wpprp"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-requests" ,python-requests)
+ ("python-lockfile" ,python-lockfile)))
+ (home-page "https://github.com/ionrock/cachecontrol")
+ (synopsis "httplib2 caching for requests")
+ (description "CacheControl is a port of the caching algorithms in httplib2
+for use with requests session object. It was written because httplib2's
+better support for caching is often mitigated by its lack of threadsafety.
+The same is true of requests in terms of caching.")
+ (license asl2.0)
+ (properties `((python2-variant . ,(delay python2-cachecontrol))))))
+
+(define-public python2-cachecontrol
+ (let ((base (package-with-python2
+ (strip-python2-variant python-cachecontrol))))
+ (package
+ (inherit base)
+ (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
+
(define-public python-cysignals
(package
(name "python-cysignals")
--
2.5.0
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., (continued)
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/24
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ricardo Wurmus, 2016/04/25
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/25
- Re: [PATCH v2 03/10] gnu: Add python-pytest-pep8., Leo Famulari, 2016/04/25
- proper Python inputs (was: gnu: Add python-pytest-pep8.), Hartmut Goebel, 2016/04/25
- Re: proper Python inputs (was: gnu: Add python-pytest-pep8.), Ricardo Wurmus, 2016/04/26
[PATCH v2 04/10] gnu: Add python-pytest-flakes., Ben Woodcroft, 2016/04/24
[PATCH v2 05/10] gnu: Add python-future., Ben Woodcroft, 2016/04/24
[PATCH v2 06/10] gnu: Add python-cachecontrol.,
Ben Woodcroft <=
[PATCH v2 07/10] gnu: python-tornado: Use 'python2-variant'., Ben Woodcroft, 2016/04/24
[PATCH v2 08/10] gnu: python-ipython: Use 'python2-variant'., Ben Woodcroft, 2016/04/24
[PATCH v2 09/10] gnu: Add python-natsort., Ben Woodcroft, 2016/04/24
[PATCH v2 10/10] gnu: Add python-scikit-bio., Ben Woodcroft, 2016/04/24