From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzBsV-0008Bp-13 for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzBsT-0003GW-Ke for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzBsT-0003GJ-HA for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzBsT-0004DH-AX for guix-patches@gnu.org; Mon, 02 Oct 2017 21:20:05 -0400 Subject: [bug#28679] [PATCH 3/4] gnu: Add python-traceback2. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzBrp-00086J-J4 for guix-patches@gnu.org; Mon, 02 Oct 2017 21:19:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzBro-0002dt-JT for guix-patches@gnu.org; Mon, 02 Oct 2017 21:19:25 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:51241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzBro-0002dU-Ch for guix-patches@gnu.org; Mon, 02 Oct 2017 21:19:24 -0400 Received: by mail-wm0-x241.google.com with SMTP id f4so5663009wme.0 for ; Mon, 02 Oct 2017 18:19:24 -0700 (PDT) From: Cyril Roelandt Date: Tue, 3 Oct 2017 03:19:12 +0200 Message-Id: <20171003011913.19229-4-tipecaml@gmail.com> In-Reply-To: <20171003011913.19229-1-tipecaml@gmail.com> References: <20171003011913.19229-1-tipecaml@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28679@debbugs.gnu.org * gnu/packages/python.scm (python-traceback2, python2-traceback2): New variables. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f6e395bfc..e66706086 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16465,3 +16465,34 @@ lines are read from a single file.") (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 + `(;; python-traceback2 and python-unittest2 depend on one another. + #:tests? #f)) + (native-inputs + `(("python-pbr" ,python-pbr))) + (propagated-inputs + `(("python-linecache2" ,python-linecache2))) + (home-page + "https://github.com/testing-cabal/traceback2") + (synopsis "Backports of the traceback module") + (description + "This module provides a standard interface to extract, format and print +stack traces of Python programs. It exactly mimics the behavior of the Python +interpreter when it prints a stack trace.") + (license license:psfl))) + +(define-public python2-traceback2 + (package-with-python2 python-traceback2)) -- 2.14.1