From 81e9157501ffa3e4f47498fe802702b3bf66004c Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 21 Oct 2017 22:56:09 +0000 Subject: [PATCH 2/6] gnu: Add python-capturer. * gnu/packages/python.scm (python-capturer): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b64bdeda6..d6af5c0d6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1126,6 +1126,34 @@ to make text interfaces more user friendly.") (define-public python2-humanfriendly (package-with-python2 python-humanfriendly)) +(define-public python-capturer + (package + (name "python-capturer") + (version "2.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "capturer" version)) + (sha256 + (base32 + "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (propagated-inputs + `(("python-humanfriendly" ,python-humanfriendly))) + (home-page "https://capturer.readthedocs.io") + (synopsis "Capture stdout and stderr streams of the current process") + (description + "The capturer package makes it easy to capture the stdout and stderr +streams of the current process and subprocesses. Output can be relayed +to the terminal in real time but is also available to the Python program +for additional processing.") + (license license:expat))) + +(define-public python2-capturer + (package-with-python2 python-capturer)) + (define-public python-eventlet (package (name "python-eventlet") -- 2.14.2