summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyexpect/default.nix
blob: 70acc2ffd1d412231c35bc57dfefaffdc0673d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyexpect";
  version = "1.0.22";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dwt";
    repo = "pyexpect";
    tag = version;
    hash = "sha256-2c+lIpw1q5vF/+7oaVpu743n+xxzf23wXce8oFA7jKw=";
  };

  build-system = [
    setuptools
  ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  pythonImportsCheck = [ "pyexpect" ];

  meta = {
    changelog = "https://dwt/pyexpect/releases/tag/${version}";
    description = "Minimal but very flexible implementation of the expect pattern";
    homepage = "https://github.com/dwt/pyexpect";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ lzcunt ];
  };
}