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