2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pygments
|
|
|
|
, six
|
|
|
|
, wcwidth
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyte
|
|
|
|
, ptyprocess
|
|
|
|
, pexpect
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lineedit";
|
|
|
|
version = "0.1.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "randy3k";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "fq2NpjIQkIq1yzXEUxi6cz80kutVqcH6MqJXHtpTFsk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygments
|
|
|
|
six
|
|
|
|
wcwidth
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pyte
|
|
|
|
pexpect
|
|
|
|
ptyprocess
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "lineedit" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A readline library based on prompt_toolkit which supports multiple modes";
|
|
|
|
homepage = "https://github.com/randy3k/lineedit";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ savyajha ];
|
|
|
|
};
|
|
|
|
}
|