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