python310Packages.click-command-tree: init at 1.1.0

This commit is contained in:
Theodore Ni 2022-12-04 12:49:07 -08:00
parent ca2cc36c68
commit 78746f5621
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
2 changed files with 51 additions and 0 deletions
pkgs
development/python-modules/click-command-tree
top-level

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, click
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "click-command-tree";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "whwright";
repo = pname;
rev = version;
hash = "sha256-vFOcn+ibyLZnhU3OQMtnHI04UqAY2/CCvhq4EEU4XFo=";
};
patches = [
(fetchpatch {
name = "remove-setup-downloading-flake8.patch";
url = "https://github.com/whwright/click-command-tree/commit/1ecfcfa29bf01e1131e6ec712bd7338ac1283dc8.patch";
hash = "sha256-u5jsNfEo1+XNlkVGPCM/rsDPnYko6cr2z2si9nq+sLA=";
})
];
propagatedBuildInputs = [
click
];
checkInputs = [
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 ];
};
}

View file

@ -1750,6 +1750,8 @@ self: super: with self; {
clickclick = callPackage ../development/python-modules/clickclick { };
click-command-tree = callPackage ../development/python-modules/click-command-tree { };
click-completion = callPackage ../development/python-modules/click-completion { };
click-configfile = callPackage ../development/python-modules/click-configfile { };