guix-commits
[Top][All Lists]
Advanced

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

03/07: gnu: Add python-tblib and python2-tblib.


From: Ludovic Courtès
Subject: 03/07: gnu: Add python-tblib and python2-tblib.
Date: Wed, 1 Jun 2016 21:41:31 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit b8fdbca32026a7f814f2bb2064774c54d803a8a6
Author: Hartmut Goebel <address@hidden>
Date:   Sun May 29 19:00:33 2016 +0200

    gnu: Add python-tblib and python2-tblib.
    
    * gnu/packages/python.scm (python-tblib, python2-tblib): New
    variables.
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/python.scm |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 701ee45..043c2a5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2015, 2016 Chris Marusich <address@hidden>
 ;;; Copyright © 2016 Danny Milosavljevic <address@hidden>
 ;;; Copyright © 2016 Lukas Gradl <address@hidden>
+;;; Copyright © 2016 Hartmut Goebel <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8809,3 +8810,46 @@ to occurences in strings and comments.")
 functionality in a modular way, allowing you to extend your panel with your
 own code, responding to click events and updating clock every second.")
     (license bsd-3)))
+
+(define-public python-tblib
+  (package
+    (name "python-tblib")
+    (version "1.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "tblib" version))
+              (sha256 (base32
+                       
"02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             ;; Upstream runs tests after installation and the package itself
+             ;; resides in a subdirectory. Extend PYTHONPATH so it will be
+             ;; found.
+             (setenv "PYTHONPATH"
+                     (string-append (getcwd) "/build/lib:"
+                                    (getenv "PYTHONPATH")))
+             (zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-setuptools" ,python-setuptools)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/ionelmc/python-tblib";)
+    (synopsis "Traceback serialization library")
+    (description
+     "Traceback serialization allows you to:
+
address@hidden
address@hidden Pickle tracebacks and raise exceptions with pickled tracebacks in
+different processes.  This allows better error handling when running code over
+multiple processes (imagine multiprocessing, billiard, futures, celery etc).
+
address@hidden Parse traceback strings and raise with the parsed tracebacks.
address@hidden itemize")
+    (license bsd-3)))
+
+(define-public python2-tblib
+  (package-with-python2 python-tblib))



reply via email to

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