nixpkgs/pkgs/development/python-modules/pexpect/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
ptyprocess,
# Reverse dependency
sage,
}:
buildPythonPackage rec {
pname = "pexpect";
version = "4.9.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-7n1BEj88mREFDqLC2sEHVo3EOy07DHVXozISw5jq0w8=";
};
nativeBuildInputs = [ setuptools ];
# Wants to run pythonin a subprocess
doCheck = false;
propagatedBuildInputs = [ ptyprocess ];
passthru.tests = {
inherit sage;
};
meta = {
homepage = "http://www.noah.org/wiki/Pexpect";
description = "Automate interactive console applications such as ssh, ftp, etc";
downloadPage = "https://github.com/pexpect/pexpect";
license = lib.licenses.mit;
maintainers = with lib.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.
'';
};
}