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