[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] gnu: Add python-tblib and python2-tblib
From: |
Hartmut Goebel |
Subject: |
[PATCH 1/7] gnu: Add python-tblib and python2-tblib |
Date: |
Sun, 17 Apr 2016 22:50:51 +0200 |
* packages/python.scm (python-tblib) (python2-tblib): New
functions.
---
gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0379352..70db0e1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2015 Kyle Meyer <address@hidden>
;;; Copyright © 2015, 2016 Chris Marusich <address@hidden>
;;; Copyright © 2016 Danny Milosavljevic <address@hidden>
+;;; Copyright © 2016 Hartmut Goebel <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -8712,3 +8713,42 @@ respectively.")
(define-public python2-cysignals
(package-with-python2 python-cysignals))
+(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 _
+ (zero? (system* "py.test" "--ignore=setup.py"
+ "--ignore=docs/conf.py"
+ "--ignore=ci/appveyor-download.py")))))))
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/ionelmc/python-tblib")
+ (synopsis "Traceback serialization library")
+ (description
+ "Traceback serialization allows you to:
+
+* 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).
+
+* Parse traceback strings and raise with the parsed tracebacks.")
+ (license bsd-3)))
+
+(define-public python2-tblib
+ (package-with-python2 python-tblib))
--
2.7.4
- [PATCH 0/7] Some new python packages, Hartmut Goebel, 2016/04/17
- [PATCH 3/7] gnu: add python-selenium and python2-selenium, Hartmut Goebel, 2016/04/17
- [PATCH 5/7] gnu: add python-maxminddb and python2-maxminddb, Hartmut Goebel, 2016/04/17
- [PATCH 7/7] gnu: add python-geoip2 and python2-geoip2, Hartmut Goebel, 2016/04/17
- [PATCH 1/7] gnu: Add python-tblib and python2-tblib,
Hartmut Goebel <=
- [PATCH 4/7] gnu: Add python2-ipaddr, a Python-2-only package, Hartmut Goebel, 2016/04/17
[PATCH 6/7] gnu: add comment pointing to python-requests-mock in openstack, Hartmut Goebel, 2016/04/17