2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# native
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagated
|
|
|
|
, blessed
|
|
|
|
, python-editor
|
|
|
|
, readchar
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pexpect
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inquirer";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.1.4";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub rec {
|
|
|
|
owner = "magmax";
|
|
|
|
repo = "python-inquirer";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-1xaxLIk4GFRpcodhBX+Co9TgpYkWhB/D4OE4Nny4ijM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
|
|
|
python-editor
|
|
|
|
readchar
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
pexpect
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"inquirer"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A collection of common interactive command line user interfaces, based on Inquirer.js";
|
2023-02-16 17:41:37 +00:00
|
|
|
homepage = "https://github.com/magmax/python-inquirer";
|
|
|
|
changelog = "https://github.com/magmax/python-inquirer/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-02-16 17:41:37 +00:00
|
|
|
maintainers = with maintainers; [ mmahut ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|