summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-12-04 12:49:07 -0800
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2022-12-04 13:03:21 -0800
commit78746f5621ee65a381b4be1d309c65a79d48c3e6 (patch)
tree5c1c3fb3b1a26bf0158b0d631fa831ea73016e22
parentMerge pull request #203216 from tjni/pnpm-update (diff)
downloadnixpkgs-78746f5621ee65a381b4be1d309c65a79d48c3e6.tar.gz
python310Packages.click-command-tree: init at 1.1.0
-rw-r--r--pkgs/development/python-modules/click-command-tree/default.nix49
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/click-command-tree/default.nix b/pkgs/development/python-modules/click-command-tree/default.nix
new file mode 100644
index 000000000000..14903853646e
--- /dev/null
+++ b/pkgs/development/python-modules/click-command-tree/default.nix
@@ -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 ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 5e26e836eb87..e5b43818eea8 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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 { };