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