My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/fortiosapi/default.nix

40 lines
798 B

{ 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 ];
};
}