1{
2 lib,
3 argcomplete,
4 jinja2,
5 meraki,
6 rich,
7 fetchPypi,
8 buildPythonApplication,
9 pytestCheckHook,
10 requests-mock,
11 setuptools,
12}:
13
14buildPythonApplication rec {
15 pname = "meraki-cli";
16 version = "1.5.1";
17 pyproject = true;
18
19 src = fetchPypi {
20 pname = "meraki_cli";
21 inherit version;
22 hash = "sha256-FHcKgppclc0L6yuCkpVYfr+jq8hNkt7Hq/44mpHMR20=";
23 };
24
25 disabledTests = [
26 # requires files not in PyPI tarball
27 "TestDocVersions"
28 "TestHelps"
29 # requires running "pip install"
30 "TestUpgrade"
31 ];
32
33 build-system = [
34 setuptools
35 ];
36
37 dependencies = [
38 argcomplete
39 jinja2
40 meraki
41 rich
42 ];
43
44 nativeCheckInputs = [
45 pytestCheckHook
46 requests-mock
47 ];
48
49 pythonImportsCheck = [
50 "meraki_cli"
51 ];
52
53 meta = with lib; {
54 homepage = "https://github.com/PackeTsar/meraki-cli";
55 description = "Simple CLI tool to automate and control your Cisco Meraki Dashboard";
56 license = licenses.mit;
57 maintainers = with maintainers; [ dylanmtaylor ];
58 platforms = platforms.unix;
59 mainProgram = "meraki";
60 };
61}