From 2bac5de0f91da7665bf2df2b3a76dfed92b41dd6 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 6 Apr 2023 18:52:43 -0400 Subject: [PATCH] meraki-cli: init at 1.5.0 --- pkgs/tools/admin/meraki-cli/default.nix | 58 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/tools/admin/meraki-cli/default.nix diff --git a/pkgs/tools/admin/meraki-cli/default.nix b/pkgs/tools/admin/meraki-cli/default.nix new file mode 100644 index 000000000000..c446023770bc --- /dev/null +++ b/pkgs/tools/admin/meraki-cli/default.nix @@ -0,0 +1,58 @@ +{ lib +, argcomplete +, jinja2 +, meraki +, rich +, fetchPypi +, buildPythonApplication +, pytestCheckHook +, requests-mock +}: + +buildPythonApplication rec { + pname = "meraki-cli"; + version = "1.5.0"; + format = "setuptools"; + + src = fetchPypi { + pname = "meraki_cli"; + inherit version; + hash = "sha256-YOyeovqRqt6ZMXgLnIxRvPkcW259K8NIBGdb3PwjkMg="; + }; + + disabledTests = [ + # requires files not in PyPI tarball + "TestDocVersions" + "TestHelps" + # requires running "pip install" + "TestUpgrade" + ]; + + propagatedBuildInputs = [ + argcomplete + jinja2 + meraki + rich + ]; + + nativeBuildInputs = [ + pytestCheckHook + ]; + + nativeCheckInputs = [ + requests-mock + ]; + + pythonImportsCheck = [ + "meraki_cli" + ]; + + meta = with lib; { + homepage = "https://github.com/PackeTsar/meraki-cli"; + description = "A simple CLI tool to automate and control your Cisco Meraki Dashboard"; + license = licenses.mit; + maintainers = with maintainers; [ dylanmtaylor ]; + platforms = platforms.unix; + mainProgram = "meraki"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 032e042e40dd..940531e3b058 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18425,6 +18425,8 @@ with pkgs; mdl = callPackage ../development/tools/misc/mdl { }; + meraki-cli = python3Packages.callPackage ../tools/admin/meraki-cli { }; + python-matter-server = with python3Packages; toPythonApplication python-matter-server; minify = callPackage ../development/web/minify { };