2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
urwid,
|
|
|
|
pytestCheckHook,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-02-29 20:09:43 +00:00
|
|
|
pname = "urwid-readline";
|
|
|
|
version = "0.14";
|
|
|
|
pyproject = true;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rr-";
|
|
|
|
repo = "urwid_readline";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ZTg+GZnu7R6Jf2+SIwVo57yHnjwuY92DElTJs8oRErE=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ urwid ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonImportsCheck = [ "urwid_readline" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A textbox edit widget for urwid that supports readline shortcuts";
|
|
|
|
homepage = "https://github.com/rr-/urwid_readline";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|