From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH 06/10] gnu: Add python-cachecontrol. Date: Thu, 21 Apr 2016 23:21:57 +1000 Message-ID: <1461244921-7412-7-git-send-email-donttrustben@gmail.com> References: <1461244921-7412-1-git-send-email-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atEZF-0002H5-AN for Guix-devel@gnu.org; Thu, 21 Apr 2016 09:22:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atEZE-0004Qy-E4 for Guix-devel@gnu.org; Thu, 21 Apr 2016 09:22:49 -0400 Received: from mail-pa0-x244.google.com ([2607:f8b0:400e:c03::244]:36854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atEZE-0004Q0-7z for Guix-devel@gnu.org; Thu, 21 Apr 2016 09:22:48 -0400 Received: by mail-pa0-x244.google.com with SMTP id i5so6297103pag.3 for ; Thu, 21 Apr 2016 06:22:48 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id m12sm1325947pfi.5.2016.04.21.06.22.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 06:22:46 -0700 (PDT) In-Reply-To: <1461244921-7412-1-git-send-email-donttrustben@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix-devel@gnu.org * gnu/packages/python.scm (python-cachecontrol, python2-cachecontrol): New variables. --- gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 54c3202..0fc65fe 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8873,6 +8873,40 @@ 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 (string-append + "https://pypi.python.org/packages/source/C/CacheControl/CacheControl-" + version + ".tar.gz")) + (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