2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-08-05 21:33:18 +00:00
|
|
|
, pytestCheckHook
|
2021-12-26 17:43:05 +00:00
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
, wcwidth
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "prompt-toolkit";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.0.36";
|
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;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-PhY/JUvvWgOxRjl9fBljvT4oEvCWS7miTm7HYf0o22M=";
|
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
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
checkInputs = [
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"prompt_toolkit"
|
|
|
|
];
|
|
|
|
|
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";
|
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
|
|
|
};
|
|
|
|
}
|