diff --git a/pkgs/development/python-modules/urwid-readline/default.nix b/pkgs/development/python-modules/urwid-readline/default.nix new file mode 100644 index 000000000000..1ded152cba91 --- /dev/null +++ b/pkgs/development/python-modules/urwid-readline/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, urwid +, glibcLocales +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "urwid_readline"; + version = "0.11"; + + src = fetchPypi { + inherit pname version; + sha256 = "24e376d4b75940d19e8bc81c264be5d383f8d4da560f68f648dd16c85f6afdb5"; + }; + + propagatedBuildInputs = [ + urwid + ]; + + checkInputs = [ + glibcLocales + pytestCheckHook + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 138041aefd78..55fb080d3b74 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7230,6 +7230,8 @@ in { urwidtrees = callPackage ../development/python-modules/urwidtrees { }; + urwid-readline = callPackage ../development/python-modules/urwid-readline { }; + usbtmc = callPackage ../development/python-modules/usbtmc { }; us = callPackage ../development/python-modules/us { };