summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2023-04-06 19:43:42 -0400
committerGitHub <noreply@github.com>2023-04-06 19:43:42 -0400
commitd73c93c9d0b454f379a77d7dbeb7fd82e33cdd7a (patch)
tree147330ddf9f98ab21a15fb618bf8ad0bf32a19a8
parentMerge pull request #224351 from Luflosi/update/python3Packages.furo (diff)
parentmeraki-cli: init at 1.5.0 (diff)
downloadnixpkgs-d73c93c9d0b454f379a77d7dbeb7fd82e33cdd7a.tar.gz
Merge pull request #222266 from dylanmtaylor/meraki-cli
meraki-cli: init at 1.5.0
-rw-r--r--pkgs/tools/admin/meraki-cli/default.nix58
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 60 insertions, 0 deletions
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 15b0520f9a2d..781d5efafc71 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -18426,6 +18426,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 { };