* 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 <k...@kyleam.com> ;;; Copyright © 2015, 2016 Chris Marusich <cmmarus...@gmail.com> ;;; Copyright © 2016 Danny Milosavljevic <danny...@scratchpost.org> +;;; Copyright © 2016 Hartmut Goebel <h.goe...@crazy-compilers.com> ;;; ;;; 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: + +@itemize +@item 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). + +@item Parse traceback strings and raise with the parsed tracebacks. +@end itemize") + (license bsd-3))) + +(define-public python2-tblib + (package-with-python2 python-tblib)) -- 2.7.4