1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, six
6, wcwidth
7}:
8
9buildPythonPackage rec {
10 pname = "prompt_toolkit";
11 version = "3.0.18";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "e1b4f11b9336a28fa11810bc623c357420f69dfdb6d2dac41ca2c21a55c033bc";
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}