nixpkgs/pkgs/development/python-modules/urwid-readline/default.nix

37 lines
772 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
urwid,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "urwid-readline";
version = "0.15.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rr-";
repo = "urwid_readline";
rev = "refs/tags/${version}";
hash = "sha256-HiMMLzVE/Qw/PR7LXACyfzblxrGYrbMoi3/e/QzqF34=";
};
build-system = [ setuptools ];
dependencies = [ urwid ];
pythonImportsCheck = [ "urwid_readline" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Textbox edit widget for urwid that supports readline shortcuts";
homepage = "https://github.com/rr-/urwid_readline";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}