[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/6] gnu: Add python-tblib and python2-tblib
From: |
Hartmut Goebel |
Subject: |
[PATCH 1/6] gnu: Add python-tblib and python2-tblib |
Date: |
Thu, 21 Apr 2016 21:19:48 +0200 |
* packages/python.scm (python-tblib) (python2-tblib): New
variables.
---
gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0379352..7cb1dc6 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,47 @@ 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
+ ;; Run py.test, excluding some file which are no tests and fail to i
+ ;; mport. Excluding know problem-files is less intrusive to what
+ ;; upstream has configured to be tested than restricting to only scan
+ ;; directory tests/.
+ (lambda _
+ (zero? (system* "py.test" "--ignore=setup.py"
+ "--ignore=docs/conf.py"
+ "--ignore=ci/appveyor-download.py")))))))
+ (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))
--
2.7.4
- [PATCH 0/6] Updated: Some new python packages, Hartmut Goebel, 2016/04/21
- [PATCH 4/6] gnu: Add python2-ipaddr, a Python-2-only package, Hartmut Goebel, 2016/04/21
- [PATCH 1/6] gnu: Add python-tblib and python2-tblib,
Hartmut Goebel <=
- [PATCH 6/7] gnu: add comment pointing to python-requests-mock in openstack, Hartmut Goebel, 2016/04/21
- [PATCH 5/6] gnu: add python-maxminddb and python2-maxminddb, Hartmut Goebel, 2016/04/21
- [PATCH 6/6] gnu: add python-geoip2 and python2-geoip2, Hartmut Goebel, 2016/04/21
- [PATCH 7/7] gnu: add python-geoip2 and python2-geoip2, Hartmut Goebel, 2016/04/21