2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
six,
|
|
|
|
wcwidth,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "prompt-toolkit";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.0.47";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "prompt_toolkit";
|
|
|
|
inherit version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Hhspy1gICx5p8gfIk6GnvxbRJ6XDDJ0Xolpdd3kuU2A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
six
|
2021-12-26 17:43:05 +00:00
|
|
|
wcwidth
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
2022-08-12 12:06:08 +00:00
|
|
|
# tests/test_completion.py:206: AssertionError
|
|
|
|
# https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1657
|
2021-08-05 21:33:18 +00:00
|
|
|
"test_pathcompleter_can_expanduser"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "prompt_toolkit" ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library for building powerful interactive command lines";
|
|
|
|
longDescription = ''
|
|
|
|
prompt_toolkit could be a replacement for readline, but it can be
|
|
|
|
much more than that. It is cross-platform, everything that you build
|
|
|
|
with it should run fine on both Unix and Windows systems. Also ships
|
|
|
|
with a nice interactive Python shell (called ptpython) built on top.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jonathanslenders/python-prompt-toolkit";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/prompt-toolkit/python-prompt-toolkit/blob/${version}/CHANGELOG";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.bsd3;
|
2021-12-26 17:43:05 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|