1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 click,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "click-command-tree";
11 version = "1.2.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "whwright";
16 repo = "click-command-tree";
17 tag = version;
18 hash = "sha256-oshAHCGe8p5BQ0W21bXSxrTCEFgIxZ6BmUEiWB1xAoI=";
19 };
20
21 propagatedBuildInputs = [ click ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 enabledTestPaths = [ "tests.py" ];
26
27 pythonImportsCheck = [ "click_command_tree" ];
28
29 meta = with lib; {
30 description = "Click plugin to show the command tree of your CLI";
31 homepage = "https://github.com/whwright/click-command-tree";
32 license = licenses.mit;
33 maintainers = with maintainers; [ tjni ];
34 };
35}