From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 1/6] gnu: Add python-tblib and python2-tblib Date: Thu, 21 Apr 2016 21:19:48 +0200 Message-ID: <1461266395-2731-2-git-send-email-h.goebel@crazy-compilers.com> References: <1461266395-2731-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]:49783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atK8y-0003eR-Ea for guix-devel@gnu.org; Thu, 21 Apr 2016 15:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atK8u-0006Rz-PR for guix-devel@gnu.org; Thu, 21 Apr 2016 15:20:04 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:37799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atK8u-0006Rm-EH for guix-devel@gnu.org; Thu, 21 Apr 2016 15:20:00 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qrT8v5DLfz3hmhR for ; Thu, 21 Apr 2016 21:19:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qrT8v3xTkzvkFZ for ; Thu, 21 Apr 2016 21:19:59 +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 obYJGmHFPRsO for ; Thu, 21 Apr 2016 21:19:58 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-141-229.dynamic.mnet-online.de [188.174.141.229]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Thu, 21 Apr 2016 21:19:58 +0200 (CEST) Received: from thisbe.goebel-consult.de (unknown [192.168.110.30]) by hermia.goebel-consult.de (Postfix) with ESMTP id E2BAB60375 for ; Thu, 21 Apr 2016 21:19:56 +0200 (CEST) In-Reply-To: <1461266395-2731-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 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 =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,47 @@ 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 + ;; Run py.test, excluding some file which are no tests and fail= to i + ;; mport. Excluding know problem-files is less intrusive to wh= at + ;; upstream has configured to be tested than restricting to onl= y scan + ;; directory tests/. + (lambda _ + (zero? (system* "py.test" "--ignore=3Dsetup.py" + "--ignore=3Ddocs/conf.py" + "--ignore=3Dci/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 e= tc). + +@item Parse traceback strings and raise with the parsed tracebacks. +@end itemize") + (license bsd-3))) + +(define-public python2-tblib + (package-with-python2 python-tblib)) --=20 2.7.4