aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2017-03-19 00:22:52 +0530
committerMarius Bakke <mbakke@fastmail.com>2017-03-20 00:40:30 +0100
commit965a083ed2dd230359cd336a101829a44d61d0b6 (patch)
treef1d6918cbf854ed2a44d2c6f39b0004f778f68f2 /gnu/packages/python.scm
parent6ba0af7960149455d9c692e8b29eddbd517ab758 (diff)
downloadpatches-965a083ed2dd230359cd336a101829a44d61d0b6.tar
patches-965a083ed2dd230359cd336a101829a44d61d0b6.tar.gz
gnu: Add python2-backports-functools-lru-cache.
* gnu/packages/python.scm (python2-backports-functools-lru-cache): New variable. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a8cec0de9a..6a865e6f36 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13751,3 +13751,26 @@ editors.")
(define-public python2-isort
(package-with-python2 python-isort))
+
+(define-public python2-backports-functools-lru-cache
+ (package
+ (name "python2-backports-functools-lru-cache")
+ (version "1.3")
+ (source
+ (origin
+ (method url-fetch)
+ ;; only the pypi tarballs contain the necessary metadata
+ (uri (pypi-uri "backports.functools_lru_cache" version))
+ (sha256
+ (base32
+ "158ysf2hb0q4p4695abfiym9x1ywg0dgh8a3apd7gqaaxjy22jj4"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python2-setuptools-scm" ,python2-setuptools-scm)))
+ (arguments
+ `(#:python ,python-2))
+ (home-page "https://github.com/jaraco/backports.functools_lru_cache")
+ (synopsis "Backport of functools.lru_cache from Python 3.3")
+ (description "@code{python2-backports-functools-lru-cache} is a backport
+of @code{functools.lru_cache} from python 3.3.")
+ (license license:expat)))