about summary refs log tree commit diff
path: root/pkgs/tools/admin/meraki-cli/default.nix
blob: c446023770bc4e9f2e4cae36f11a2ce2cedda1a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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";
  };
}