Files
nixpkgs/pkgs/development/python-modules/click-shell/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ binsky ];
};
}