1{ lib 2, buildPythonPackage 3, fetchPypi 4, ptyprocess 5}: 6 7buildPythonPackage rec { 8 pname = "pexpect"; 9 version = "4.4.0"; 10 name = "${pname}-${version}"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "67b85a1565968e3d5b5e7c9283caddc90c3947a2625bed1905be27bd5a03e47d"; 15 }; 16 17 # Wants to run pythonin a subprocess 18 doCheck = false; 19 20 propagatedBuildInputs = [ ptyprocess ]; 21 22 meta = with lib; { 23 homepage = http://www.noah.org/wiki/Pexpect; 24 description = "Automate interactive console applications such as ssh, ftp, etc"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ zimbatm ]; 27 28 longDescription = '' 29 Pexpect is similar to the Don Libes "Expect" system, but Pexpect 30 as a different interface that is easier to understand. Pexpect 31 is basically a pattern matching system. It runs programs and 32 watches output. When output matches a given pattern Pexpect can 33 respond as if a human were typing responses. Pexpect can be used 34 for automation, testing, and screen scraping. Pexpect can be 35 used for automating interactive console applications such as 36 ssh, ftp, passwd, telnet, etc. It can also be used to control 37 web applications via "lynx", "w3m", or some other text-based web 38 browser. Pexpect is pure Python. Unlike other Expect-like 39 modules for Python Pexpect does not require TCL or Expect nor 40 does it require C extensions to be compiled. It should work on 41 any platform that supports the standard Python pty module. 42 ''; 43 }; 44}