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 = "2.0.9"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "2519ad1d8038fd5fc8e770362237ad0364d16a7650fb5724af6997ed5515e3c1"; 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}