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