Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, six 6, wcwidth 7}: 8 9buildPythonPackage rec { 10 pname = "prompt_toolkit"; 11 version = "3.0.6"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "7630ab85a23302839a0f26b31cc24f518e6155dea1ed395ea61b42c45941b6a6"; 16 }; 17 checkPhase = '' 18 py.test -k 'not test_pathcompleter_can_expanduser' 19 ''; 20 21 checkInputs = [ pytest ]; 22 propagatedBuildInputs = [ six wcwidth ]; 23 24 meta = { 25 description = "Python library for building powerful interactive command lines"; 26 longDescription = '' 27 prompt_toolkit could be a replacement for readline, but it can be 28 much more than that. It is cross-platform, everything that you build 29 with it should run fine on both Unix and Windows systems. Also ships 30 with a nice interactive Python shell (called ptpython) built on top. 31 ''; 32 homepage = "https://github.com/jonathanslenders/python-prompt-toolkit"; 33 license = lib.licenses.bsd3; 34 }; 35}