Subject: [PATCH 14/18] gnu: Add python-traceback2.

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

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index be556959d..77efcf1ed 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1843,6 +1843,31 @@ interfaces and processes.")
 (define-public python2-linecache2
   (package-with-python2 python-linecache2))
 
+(define-public python-traceback2
+  (package
+    (name "python-traceback2")
+    (version "1.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "traceback2" version))
+              (sha256
+               (base32
+                "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
+    (build-system python-build-system)
+    (arguments `(#:tests? #f)) ; FIXME: Dependency cycle on unittest2.
+    (native-inputs
+     `(("python-pbr" ,python-pbr-minimal)))
+    (propagated-inputs
+     `(("python-linecache2" ,python-linecache2)))
+    (home-page "https://github.com/testing-cabal/traceback2")
+    (synopsis "Backports of the traceback module")
+    (description
+     "Backports of the traceback module to older versions of Python.")
+    (license license:psfl)))
+
+(define-public python2-traceback2
+  (package-with-python2 python-traceback2))
+
 (define-public python-unittest2
   (package
     (name "python-unittest2")
-- 
2.13.3