Files
nixpkgs/pkgs/tools/admin/meraki-cli/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1.1 KiB
Nix

{
lib,
argcomplete,
jinja2,
meraki,
rich,
fetchPypi,
buildPythonApplication,
pytestCheckHook,
requests-mock,
setuptools,
}:
buildPythonApplication rec {
pname = "meraki-cli";
version = "1.5.1";
pyproject = true;
src = fetchPypi {
pname = "meraki_cli";
inherit version;
hash = "sha256-FHcKgppclc0L6yuCkpVYfr+jq8hNkt7Hq/44mpHMR20=";
};
disabledTests = [
# requires files not in PyPI tarball
"TestDocVersions"
"TestHelps"
# requires running "pip install"
"TestUpgrade"
];
build-system = [
setuptools
];
dependencies = [
argcomplete
jinja2
meraki
rich
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [
"meraki_cli"
];
meta = {
homepage = "https://github.com/PackeTsar/meraki-cli";
description = "Simple CLI tool to automate and control your Cisco Meraki Dashboard";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dylanmtaylor ];
platforms = lib.platforms.unix;
mainProgram = "meraki";
};
}