From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57211) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igsG3-0004XE-IN for guix-patches@gnu.org; Mon, 16 Dec 2019 10:26:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igsG2-0005tw-B4 for guix-patches@gnu.org; Mon, 16 Dec 2019 10:26:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igsG2-0005t0-7F for guix-patches@gnu.org; Mon, 16 Dec 2019 10:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igsG2-0000cd-4i for guix-patches@gnu.org; Mon, 16 Dec 2019 10:26:02 -0500 Subject: [bug#38637] [PATCH 1/4] gnu: Add python-iocapture. References: <326bca30-7d18-a02b-9400-2f12bc0e5c21@mdc-berlin.de> In-Reply-To: <326bca30-7d18-a02b-9400-2f12bc0e5c21@mdc-berlin.de> Resent-Message-ID: From: =?UTF-8?Q?M=C4=83d=C4=83lin?= Ionel =?UTF-8?Q?Patra=C8=99cu?= Date: Mon, 16 Dec 2019 16:25:16 +0100 Message-ID: <20191216152519.3595-1-madalinionel.patrascu@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38637@debbugs.gnu.org Cc: =?UTF-8?Q?M=C4=83d=C4=83lin?= Ionel =?UTF-8?Q?Patra=C8=99cu?= * gnu/packages/python-xyz.scm (python-iocapture): New variable. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 03dddcde43..f26bc7719b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -67,6 +67,7 @@ ;;; Copyright © 2019 Giacomo Leidi ;;; Copyright © 2019 Wiktor Żelazny ;;; Copyright © 2019 Tanguy Le Carrour +;;; Copyright © 2019 Mădălin Ionel Patrașcu ;;; ;;; This file is part of GNU Guix. ;;; @@ -16795,3 +16796,32 @@ services to what you expect in your tests.") (define-public python2-ujson (package-with-python2 python-ujson)) + +(define-public python-iocapture + ;; the latest is more than year newer than the latest realease + (let ((commit "fdc021c431d0840303908dfc3ca8769db383595c") + (revision "1")) + (package + (name "python-iocapture") + (version "0.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference (url "https://github.com/oinume/iocapture.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flexmock" ,python-flexmock) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-six" ,python-six))) + (home-page "https://github.com/oinume/iocapture") + (synopsis "Phython capuring tool for stdout and stderr") + (description + "python-iocapture helps you to capture the standard out (stdout) and the +standard error channel (stderr) in your program.") + (license license:expat)))) ; MIT license \ No newline at end of file -- 2.17.1