Merge pull request #110712 from fabaff/fortiosapi

Sandro 03fb6086 9e29d266

Changed files
+43 -1
pkgs
development
python-modules
fortiosapi
servers
home-assistant
top-level
+40
pkgs/development/python-modules/fortiosapi/default.nix
···
+
{ 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 ];
+
};
+
}
+1 -1
pkgs/servers/home-assistant/component-packages.nix
···
"folder_watcher" = ps: with ps; [ watchdog ];
"foobot" = ps: with ps; [ ]; # missing inputs: foobot_async
"forked_daapd" = ps: with ps; [ ]; # missing inputs: pyforked-daapd pylibrespot-java
-
"fortios" = ps: with ps; [ ]; # missing inputs: fortiosapi
+
"fortios" = ps: with ps; [ fortiosapi ];
"foscam" = ps: with ps; [ ]; # missing inputs: libpyfoscam
"foursquare" = ps: with ps; [ aiohttp-cors ];
"free_mobile" = ps: with ps; [ ]; # missing inputs: freesms
+2
pkgs/top-level/python-packages.nix
···
forbiddenfruit = callPackage ../development/python-modules/forbiddenfruit { };
+
fortiosapi = callPackage ../development/python-modules/fortiosapi { };
+
FormEncode = callPackage ../development/python-modules/FormEncode { };
foundationdb51 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb51; };