1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, oyaml
5, packaging
6, paramiko
7, pexpect
8, pythonOlder
9, requests
10, six
11}:
12
13buildPythonPackage rec {
14 pname = "fortiosapi";
15 version = "1.0.5";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "fortinet-solutions-cse";
22 repo = pname;
23 rev = "refs/tags/v${version}";
24 hash = "sha256-M71vleEhRYnlf+RSGT1GbCy5NEZaG0hWmJo01n9s6Rg=";
25 };
26
27 propagatedBuildInputs = [
28 pexpect
29 requests
30 paramiko
31 packaging
32 oyaml
33 six
34 ];
35
36 # Tests require a local VM
37 doCheck = false;
38
39 pythonImportsCheck = [
40 "fortiosapi"
41 ];
42
43 meta = with lib; {
44 description = "Python module to work with Fortigate/Fortios devices";
45 homepage = "https://github.com/fortinet-solutions-cse/fortiosapi";
46 license = with licenses; [ asl20 ];
47 maintainers = with maintainers; [ fab ];
48 };
49}