1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 six, 8 wcwidth, 9}: 10 11buildPythonPackage rec { 12 pname = "prompt-toolkit"; 13 version = "3.0.50"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 pname = "prompt_toolkit"; 20 inherit version; 21 hash = "sha256-VEdI84YKJiPKXNbSeV56FPPQ4cPJcoNZAT95h3/Im6s="; 22 }; 23 24 propagatedBuildInputs = [ 25 six 26 wcwidth 27 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 disabledTests = [ 32 # tests/test_completion.py:206: AssertionError 33 # https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1657 34 "test_pathcompleter_can_expanduser" 35 ]; 36 37 pythonImportsCheck = [ "prompt_toolkit" ]; 38 39 meta = with lib; { 40 description = "Python library for building powerful interactive command lines"; 41 longDescription = '' 42 prompt_toolkit could be a replacement for readline, but it can be 43 much more than that. It is cross-platform, everything that you build 44 with it should run fine on both Unix and Windows systems. Also ships 45 with a nice interactive Python shell (called ptpython) built on top. 46 ''; 47 homepage = "https://github.com/jonathanslenders/python-prompt-toolkit"; 48 changelog = "https://github.com/prompt-toolkit/python-prompt-toolkit/blob/${version}/CHANGELOG"; 49 license = licenses.bsd3; 50 maintainers = [ ]; 51 }; 52}