1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pygments,
6 six,
7 wcwidth,
8 pytestCheckHook,
9 pyte,
10 ptyprocess,
11 pexpect,
12}:
13
14buildPythonPackage rec {
15 pname = "lineedit";
16 version = "0.1.6";
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "randy3k";
21 repo = "lineedit";
22 rev = "v${version}";
23 sha256 = "fq2NpjIQkIq1yzXEUxi6cz80kutVqcH6MqJXHtpTFsk=";
24 };
25
26 propagatedBuildInputs = [
27 pygments
28 six
29 wcwidth
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 pyte
35 pexpect
36 ptyprocess
37 ];
38
39 pythonImportsCheck = [ "lineedit" ];
40
41 meta = with lib; {
42 description = "Readline library based on prompt_toolkit which supports multiple modes";
43 homepage = "https://github.com/randy3k/lineedit";
44 license = licenses.mit;
45 maintainers = with maintainers; [ savyajha ];
46 };
47}