guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add python-iocapture.


From: guix-commits
Subject: 01/01: gnu: Add python-iocapture.
Date: Mon, 16 Dec 2019 11:27:12 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit dbcef44a0bdc5472cd49cd02d9d11a9c5ff037c9
Author: Mădălin Ionel Patrașcu <address@hidden>
Date:   Mon Dec 16 16:25:16 2019 +0100

    gnu: Add python-iocapture.
    
    * gnu/packages/python-xyz.scm (python-iocapture): New variable.
    
    Co-authored-by: Ricardo Wurmus <address@hidden>
    Signed-off-by: Ricardo Wurmus <address@hidden>
---
 gnu/packages/python-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9fac876..2ec13b7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -67,6 +67,7 @@
 ;;; Copyright © 2019 Giacomo Leidi <address@hidden>
 ;;; Copyright © 2019 Wiktor Żelazny <address@hidden>
 ;;; Copyright © 2019 Tanguy Le Carrour <address@hidden>
+;;; Copyright © 2019 Mădălin Ionel Patrașcu <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -16786,3 +16787,42 @@ services to what you expect in your tests.")
 
 (define-public python2-ujson
   (package-with-python2 python-ujson))
+
+(define-public python-iocapture
+  ;; The latest release is more than a year older than this commit.
+  (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)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (delete 'check)
+           (add-after 'install 'check
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (add-installed-pythonpath inputs outputs)
+               (invoke "py.test" "-v" "tests")
+               #t)))))
+      (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 "Python capturing tool for stdout and stderr")
+      (description
+       "This package helps you to capture the standard out (stdout) and the
+standard error channel (stderr) in your program.")
+      (license license:expat))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]