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