1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, six
7, wcwidth
8}:
9
10buildPythonPackage rec {
11 pname = "prompt-toolkit";
12 version = "3.0.31";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 pname = "prompt_toolkit";
19 inherit version;
20 sha256 = "sha256-mtqVLJ0Xh/Uv9tXzSE0LTfiVJ4fAh+32offCyx6ogUg=";
21 };
22
23 propagatedBuildInputs = [
24 six
25 wcwidth
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 disabledTests = [
33 # tests/test_completion.py:206: AssertionError
34 # https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1657
35 "test_pathcompleter_can_expanduser"
36 ];
37
38 pythonImportsCheck = [
39 "prompt_toolkit"
40 ];
41
42 meta = with lib; {
43 description = "Python library for building powerful interactive command lines";
44 longDescription = ''
45 prompt_toolkit could be a replacement for readline, but it can be
46 much more than that. It is cross-platform, everything that you build
47 with it should run fine on both Unix and Windows systems. Also ships
48 with a nice interactive Python shell (called ptpython) built on top.
49 '';
50 homepage = "https://github.com/jonathanslenders/python-prompt-toolkit";
51 license = licenses.bsd3;
52 maintainers = with maintainers; [ ];
53 };
54}