Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / inquirer / default.nix
blob1d13d50804af064fa4c0e0e1d6e4b7659a8ee110
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
6 # native
7 , poetry-core
9 # propagated
10 , blessed
11 , python-editor
12 , readchar
14 # tests
15 , pytest-mock
16 , pytestCheckHook
17 , pexpect
20 buildPythonPackage rec {
21   pname = "inquirer";
22   version = "3.1.3";
23   format = "pyproject";
25   disabled = pythonOlder "3.7";
27   src = fetchFromGitHub rec {
28     owner = "magmax";
29     repo = "python-inquirer";
30     rev = "refs/tags/v${version}";
31     hash = "sha256-7GfHsCQgnDUdiM1z9YNdDuwMNy6rLjR1UTnZMgpQ5k4=";
32   };
34   nativeBuildInputs = [
35     poetry-core
36   ];
38   propagatedBuildInputs = [
39     blessed
40     python-editor
41     readchar
42   ];
44   nativeCheckInputs = [
45     pexpect
46     pytest-mock
47     pytestCheckHook
48   ];
51   pythonImportsCheck = [
52     "inquirer"
53   ];
55   meta = with lib; {
56     description = "A collection of common interactive command line user interfaces, based on Inquirer.js";
57     homepage = "https://github.com/magmax/python-inquirer";
58     changelog = "https://github.com/magmax/python-inquirer/releases/tag/v${version}";
59     license = licenses.mit;
60     maintainers = with maintainers; [ mmahut ];
61   };