about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/inquirerpy/default.nix
blob: c5460abaf7b9e0fab64427a6463b7d28ba9c7914 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ lib
, buildPythonPackage
, fetchFromGitHub
, furo
, myst-parser
, pfzy
, poetry-core
, prompt-toolkit
, pytestCheckHook
, pythonOlder
, sphinx
, sphinx-autobuild
, sphinx-copybutton
}:

buildPythonPackage rec {
  pname = "inquirerpy";
  version = "0.3.4";
  format = "pyproject";


  src = fetchFromGitHub {
    owner = "kazhala";
    repo = "InquirerPy";
    rev = "refs/tags/${version}";
    hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    pfzy
    prompt-toolkit
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "InquirerPy"
  ];

  disabledTestPaths = [
    # AttributeError: '_GeneratorContextManager' object has no attribute 'close'
    "tests/prompts/"
    "tests/base/test_simple.py"
    "tests/base/test_complex.py"
    "tests/base/test_list.py"
  ];


  meta = with lib; {
    description = "Python port of Inquirer.js";
    homepage = "https://github.com/kazhala/InquirerPy";
    changelog = "https://github.com/kazhala/InquirerPy/blob/${src.rev}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}