From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 1/7] gnu: Add python-tblib and python2-tblib Date: Sun, 17 Apr 2016 22:50:51 +0200 Message-ID: <1460926257-25147-2-git-send-email-h.goebel@crazy-compilers.com> References: <1460926257-25147-1-git-send-email-h.goebel@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1artgW-0002iX-KV for guix-devel@gnu.org; Sun, 17 Apr 2016 16:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1artep-0002Cy-0W for guix-devel@gnu.org; Sun, 17 Apr 2016 16:52:48 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:57153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arteo-0002C0-Lq for guix-devel@gnu.org; Sun, 17 Apr 2016 16:51:02 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qp3Mp00wBz3hmYS for ; Sun, 17 Apr 2016 22:51:01 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qp3Mn720RzvdWJ for ; Sun, 17 Apr 2016 22:51:01 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id n2Tfy00tQkYC for ; Sun, 17 Apr 2016 22:51:00 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-144-124.dynamic.mnet-online.de [188.174.144.124]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sun, 17 Apr 2016 22:51:00 +0200 (CEST) Received: from thisbe.goebel-consult.de (unknown [192.168.110.30]) by hermia.goebel-consult.de (Postfix) with ESMTP id D3A9160727 for ; Sun, 17 Apr 2016 22:50:58 +0200 (CEST) In-Reply-To: <1460926257-25147-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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 =C2=A9 2015 Kyle Meyer ;;; Copyright =C2=A9 2015, 2016 Chris Marusich ;;; Copyright =C2=A9 2016 Danny Milosavljevic +;;; Copyright =C2=A9 2016 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. ;;; @@ -8712,3 +8713,42 @@ respectively.") (define-public python2-cysignals (package-with-python2 python-cysignals)) =20 +(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=3Dsetup.py" + "--ignore=3Ddocs/conf.py" + "--ignore=3Dci/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 diff= erent + 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)) --=20 2.7.4