Subject: [PATCH 13/18] gnu: Add python-linecache2.

From: Marius Bakke <[email-masked]>
Date: Mon, 31 Jul 2017 22:07:30 +0200

* gnu/packages/python.scm (python-linecache2, python2-linecache2): New variables.
---
 gnu/packages/python.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a23d6aa1c..be556959d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1819,6 +1819,30 @@ interfaces and processes.")
 (define-public python2-nose2
   (package-with-python2 python-nose2))
 
+(define-public python-linecache2
+  (package
+    (name "python-linecache2")
+    (version "1.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "linecache2" version))
+              (sha256
+               (base32
+                "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
+    (build-system python-build-system)
+    (arguments `(#:tests? #f)) ; FIXME: dependency cycle on unittest2.
+    (native-inputs
+     `(("python-pbr" ,python-pbr-minimal)))
+    (home-page "https://github.com/testing-cabal/linecache2")
+    (synopsis "Backports of the linecache module")
+    (description
+     "Backports of the linecache module to older versions of Python.")
+    ;; No explicit license, but code is taken from Python standard library.
+    (license license:psfl)))
+
+(define-public python2-linecache2
+  (package-with-python2 python-linecache2))
+
 (define-public python-unittest2
   (package
     (name "python-unittest2")
-- 
2.13.3