2022-12-04 12:49:07 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click-command-tree";
|
2023-06-11 08:47:41 -07:00
|
|
|
version = "1.1.1";
|
2022-12-04 12:49:07 -08:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "whwright";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-06-11 08:47:41 -07:00
|
|
|
hash = "sha256-uBp7462LutL8aFRFix3pbVYbSf1af6k0nW0J0HhJa1U=";
|
2022-12-04 12:49:07 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-04 12:49:07 -08:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "click_command_tree" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "click plugin to show the command tree of your CLI";
|
|
|
|
homepage = "https://github.com/whwright/click-command-tree";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tjni ];
|
|
|
|
};
|
|
|
|
}
|