diff options
author | Dylan M. Taylor <dylan@dylanmtaylor.com> | 2023-04-06 18:52:43 -0400 |
---|---|---|
committer | Dylan Taylor <dylan@dylanmtaylor.com> | 2023-04-06 18:53:10 -0400 |
commit | 2bac5de0f91da7665bf2df2b3a76dfed92b41dd6 (patch) | |
tree | fe7f0e1ff27dbb7309d1ea22f6fea6cf5d3f3723 /pkgs/tools/admin/meraki-cli | |
parent | c7f79ffaee0968cbd46af0dff02193b3eb158918 (diff) |
meraki-cli: init at 1.5.0
Diffstat (limited to 'pkgs/tools/admin/meraki-cli')
-rw-r--r-- | pkgs/tools/admin/meraki-cli/default.nix | 58 |
1 files changed, 58 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 0000000000000..c446023770bc4 --- /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"; + }; +} |