2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pfzy,
|
|
|
|
poetry-core,
|
|
|
|
prompt-toolkit,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inquirerpy";
|
|
|
|
version = "0.3.4";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kazhala";
|
|
|
|
repo = "InquirerPy";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pfzy
|
|
|
|
prompt-toolkit
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "InquirerPy" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/kazhala/InquirerPy/blob/${version}/CHANGELOG.md";
|
2023-05-24 13:37:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|