nixpkgs/pkgs/development/python-modules/click-command-tree/default.nix
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

34 lines
716 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
click,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "click-command-tree";
version = "1.2.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "whwright";
repo = "click-command-tree";
tag = version;
hash = "sha256-oshAHCGe8p5BQ0W21bXSxrTCEFgIxZ6BmUEiWB1xAoI=";
};
propagatedBuildInputs = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests.py" ];
pythonImportsCheck = [ "click_command_tree" ];
meta = {
description = "Click plugin to show the command tree of your CLI";
homepage = "https://github.com/whwright/click-command-tree";
license = lib.licenses.mit;
};
}