about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pexpect
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2017-11-25 15:27:31 +0000
committerzimbatm <zimbatm@zimbatm.com>2017-11-25 19:10:30 +0000
commit4a643ce7db59278b0393f83f3ab449694c02540f (patch)
tree39b5bc4fe5b33deb26b3b4c848bf3d95ac3d0773 /pkgs/development/python-modules/pexpect
parent3fa4e1e3ee4faa16a6ee20ece6a786939f58fd69 (diff)
downloadnixlib-4a643ce7db59278b0393f83f3ab449694c02540f.tar
nixlib-4a643ce7db59278b0393f83f3ab449694c02540f.tar.gz
nixlib-4a643ce7db59278b0393f83f3ab449694c02540f.tar.bz2
nixlib-4a643ce7db59278b0393f83f3ab449694c02540f.tar.lz
nixlib-4a643ce7db59278b0393f83f3ab449694c02540f.tar.xz
nixlib-4a643ce7db59278b0393f83f3ab449694c02540f.tar.zst
nixlib-4a643ce7db59278b0393f83f3ab449694c02540f.zip
pythonPackages.pexpect: 4.2.1 -> 4.3.0
Diffstat (limited to 'pkgs/development/python-modules/pexpect')
-rw-r--r--pkgs/development/python-modules/pexpect/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pexpect/default.nix b/pkgs/development/python-modules/pexpect/default.nix
new file mode 100644
index 000000000000..c5d1e8ef3c44
--- /dev/null
+++ b/pkgs/development/python-modules/pexpect/default.nix
@@ -0,0 +1,44 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, ptyprocess
+}:
+
+buildPythonPackage rec {
+  pname = "pexpect";
+  version = "4.3.0";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1nfjmz81gsixv22dywidakm7pff3ly1i4yly950bfp8gz1r0iaq0";
+  };
+
+  # Wants to run pythonin a subprocess
+  doCheck = false;
+
+  propagatedBuildInputs = [ ptyprocess ];
+
+  meta = with lib; {
+    homepage = http://www.noah.org/wiki/Pexpect;
+    description = "Automate interactive console applications such as ssh, ftp, etc";
+    license = licenses.mit;
+    maintainers = with maintainers; [ zimbatm ];
+
+    longDescription = ''
+      Pexpect is similar to the Don Libes "Expect" system, but Pexpect
+      as a different interface that is easier to understand. Pexpect
+      is basically a pattern matching system. It runs programs and
+      watches output. When output matches a given pattern Pexpect can
+      respond as if a human were typing responses. Pexpect can be used
+      for automation, testing, and screen scraping. Pexpect can be
+      used for automating interactive console applications such as
+      ssh, ftp, passwd, telnet, etc. It can also be used to control
+      web applications via "lynx", "w3m", or some other text-based web
+      browser. Pexpect is pure Python. Unlike other Expect-like
+      modules for Python Pexpect does not require TCL or Expect nor
+      does it require C extensions to be compiled. It should work on
+      any platform that supports the standard Python pty module.
+    '';
+  };
+}