Fede
From 5f45b36859e96ccc19e0852872677916c08398c2 Mon Sep 17 00:00:00 2001
From: Federico Beffa <[email protected]>
Date: Thu, 23 Jul 2015 11:46:15 +0200
Subject: [PATCH 09/12] gnu: Add python-ptyprocess.

* gnu/packages/python.scm (python-ptyprocess, python2-ptyprocess): New
  variables.
---
 gnu/packages/python.scm | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0718cd8..9243cf7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -29,7 +29,7 @@
   #:use-module ((guix licenses)
                 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
                           gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+
-                          psfl public-domain x11-style))
+                          psfl public-domain x11-style isc))
   #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
   #:use-module (gnu packages)
   #:use-module (gnu packages compression)
@@ -4246,3 +4246,36 @@ complexity of Python source code.")
 
 (define-public python2-mistune
   (package-with-python2 python-mistune))
+
+(define-public python-ptyprocess
+  (package
+    (name "python-ptyprocess")
+    (version "0.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-";
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-nose" ,python-nose)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+                  (lambda _
+                    (zero? (system* "nosetests")))))))
+    (home-page "https://github.com/pexpect/ptyprocess";)
+    (synopsis "Run a subprocess in a pseudo terminal")
+    (description
+     "Python library use to launch a subprocess in a pseudo terminal (pty),
+and interact with both the process and its pty.")
+    (license isc)))
+
+(define-public python2-ptyprocess
+  (package-with-python2 python-ptyprocess))
-- 
2.2.1

Reply via email to