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