Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
click,
pytestCheckHook,
pytest-click,
setuptools,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "click-shell";
version = "2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "clarkperkins";
repo = "click-shell";
tag = version;
hash = "sha256-4QpQzg0yFuOFymGiTI+A8o6LyX78iTJMqr0ernYbilI=";
};
build-system = [ setuptools ];
dependencies = [ click ];
nativeCheckInputs = [
pytest-click
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "click_shell" ];
meta = with lib; {
description = "Extension to click that easily turns your click app into a shell utility";
longDescription = ''
This is an extension to click that easily turns your click app into a
shell utility. It is built on top of the built in python cmd module,
with modifications to make it work with click. It adds a 'shell' mode
with command completion to any click app.
'';
homepage = "https://github.com/clarkperkins/click-shell";
changelog = "https://github.com/clarkperkins/click-shell/releases/tag/${src.tag}";
license = licenses.bsd3;
maintainers = with maintainers; [ binsky ];
};
}