about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fortiosapi/default.nix
blob: 8b0425c38817623cda15e9c485cbb65608261dc2 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, oyaml
, packaging
, paramiko
, pexpect
, requests
}:

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

  src = fetchFromGitHub {
    owner = "fortinet-solutions-cse";
    repo = pname;
    rev = "v${version}";
    sha256 = "0679dizxcd4sk1b4h6ss8qsbjb3c8qyijlp4gzjqji91w6anzg9k";
  };

  propagatedBuildInputs = [
    pexpect
    requests
    paramiko
    packaging
    oyaml
  ];

  # Tests require a local VM
  doCheck = false;
  pythonImportsCheck = [ "fortiosapi" ];

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