2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# native
|
|
|
|
poetry-core,
|
|
|
|
|
|
|
|
# propagated
|
|
|
|
blessed,
|
|
|
|
editor,
|
|
|
|
readchar,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pexpect,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inquirer";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.2.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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-LsZ2SYgBOKZegk7b9DwForwMA49XvIe+Z6WvI1/YscY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
blessed
|
2024-04-21 15:54:59 +00:00
|
|
|
editor
|
2022-02-10 20:34:41 +00:00
|
|
|
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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "inquirer" ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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
|
|
|
};
|
|
|
|
}
|