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
|
2020-04-24 23:36:52 +00:00
|
|
|
, wcwidth
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "prompt-toolkit";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.0.24";
|
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;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1bb05628c7d87b645974a1bad3f17612be0c29fa39af9f7688030163f680bad6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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 = [
|
|
|
|
"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
|
|
|
};
|
|
|
|
}
|