diff --git a/pkgs/development/python-modules/netdata/default.nix b/pkgs/development/python-modules/netdata/default.nix new file mode 100644 index 000000000000..f4e625b12b4e --- /dev/null +++ b/pkgs/development/python-modules/netdata/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, async-timeout +}: + +buildPythonPackage rec { + pname = "netdata"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "14kyjp1q3clizs1bqx4rp31d2awjmi5v65z8sarr2ycgwqqmkrzw"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # no tests are present + doCheck = false; + + pythonImportsCheck = [ "netdata" ]; + + meta = with lib; { + description = "Python API for interacting with Netdata"; + homepage = "https://github.com/home-assistant-ecosystem/python-netdata"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b1c8b48c217b..54c90ec395b1 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -534,7 +534,7 @@ "ness_alarm" = ps: with ps; [ ]; # missing inputs: nessclient "nest" = ps: with ps; [ aiohttp-cors ha-ffmpeg python-nest ]; # missing inputs: google-nest-sdm "netatmo" = ps: with ps; [ aiohttp-cors hass-nabucasa pyatmo ]; - "netdata" = ps: with ps; [ ]; # missing inputs: netdata + "netdata" = ps: with ps; [ netdata ]; "netgear" = ps: with ps; [ ]; # missing inputs: pynetgear "netgear_lte" = ps: with ps; [ ]; # missing inputs: eternalegypt "netio" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pynetio diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bbc0a3755233..f0eea561331e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4139,6 +4139,8 @@ in { netcdf4 = callPackage ../development/python-modules/netcdf4 { }; + netdata = callPackage ../development/python-modules/netdata { }; + netdisco = callPackage ../development/python-modules/netdisco { }; netifaces = callPackage ../development/python-modules/netifaces { };