1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, furo
5, myst-parser
6, pfzy
7, poetry-core
8, prompt-toolkit
9, pytestCheckHook
10, pythonOlder
11, sphinx
12, sphinx-autobuild
13, sphinx-copybutton
14}:
15
16buildPythonPackage rec {
17 pname = "inquirerpy";
18 version = "0.3.4";
19 format = "pyproject";
20
21
22 src = fetchFromGitHub {
23 owner = "kazhala";
24 repo = "InquirerPy";
25 rev = "refs/tags/${version}";
26 hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc=";
27 };
28
29 nativeBuildInputs = [
30 poetry-core
31 ];
32
33 propagatedBuildInputs = [
34 pfzy
35 prompt-toolkit
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "InquirerPy"
44 ];
45
46 disabledTestPaths = [
47 # AttributeError: '_GeneratorContextManager' object has no attribute 'close'
48 "tests/prompts/"
49 "tests/base/test_simple.py"
50 "tests/base/test_complex.py"
51 "tests/base/test_list.py"
52 ];
53
54
55 meta = with lib; {
56 description = "Python port of Inquirer.js";
57 homepage = "https://github.com/kazhala/InquirerPy";
58 changelog = "https://github.com/kazhala/InquirerPy/blob/${src.rev}/CHANGELOG.md";
59 license = licenses.mit;
60 maintainers = with maintainers; [ fab ];
61 };
62}