guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: Add python-linecache2.


From: Cyril Roelandt
Subject: 02/04: gnu: Add python-linecache2.
Date: Mon, 9 Oct 2017 20:52:21 -0400 (EDT)

steap pushed a commit to branch master
in repository guix.

commit ab28aa229bff7af49ee9a413366000dd61755878
Author: Cyril Roelandt <address@hidden>
Date:   Tue Sep 12 00:29:35 2017 +0200

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ee37ebb..395e399 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -16503,3 +16503,32 @@ their files and supports any packaging format 
(including wheels).")
 
 (define-public python2-twine
   (package-with-python2 python-twine))
+
+(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
+     `(;; The tests depend on unittest2, and our version is a bit too old.
+       #:tests? #f))
+    (native-inputs
+     `(("python-pbr" ,python-pbr)))
+    (home-page
+      "https://github.com/testing-cabal/linecache2";)
+    (synopsis "Backports of the linecache module")
+    (description
+      "The linecache module allows one to get any line from any file, while
+attempting to optimize internally, using a cache, the common case where many
+lines are read from a single file.")
+    (license license:psfl)))
+
+(define-public python2-linecache2
+  (package-with-python2 python-linecache2))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]