1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, six
6, wcwidth
7}:
8
9buildPythonPackage rec {
10 pname = "prompt-toolkit";
11 version = "3.0.19";
12
13 src = fetchPypi {
14 pname = "prompt_toolkit";
15 inherit version;
16 sha256 = "08360ee3a3148bdb5163621709ee322ec34fc4375099afa4bbf751e9b7b7fa4f";
17 };
18
19 propagatedBuildInputs = [ six wcwidth ];
20
21 checkInputs = [ pytestCheckHook ];
22
23 disabledTests = [
24 "test_pathcompleter_can_expanduser"
25 ];
26
27 meta = with lib; {
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 maintainers = with maintainers; [ ];
37 license = licenses.bsd3;
38 };
39}