summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fortiosapi/default.nix
blob: 8b0375fc3ab792d948d95f2b03e06e4388e00b1b (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  oyaml,
  packaging,
  paramiko,
  pexpect,
  requests,
  six,
}:

buildPythonPackage rec {
  pname = "fortiosapi";
  version = "1.0.5";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "fortinet-solutions-cse";
    repo = "fortiosapi";
    tag = "v${version}";
    hash = "sha256-M71vleEhRYnlf+RSGT1GbCy5NEZaG0hWmJo01n9s6Rg=";
  };

  propagatedBuildInputs = [
    pexpect
    requests
    paramiko
    packaging
    oyaml
    six
  ];

  # Tests require a local VM
  doCheck = false;

  pythonImportsCheck = [ "fortiosapi" ];

  meta = {
    description = "Python module to work with Fortigate/Fortios devices";
    homepage = "https://github.com/fortinet-solutions-cse/fortiosapi";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}