From c5ce74fcf23ae81bfce829fcb93460d7801e27bb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Jan 2021 20:16:34 +0100 Subject: [PATCH] python3Packages.netdata: init at 0.2.0 --- .../python-modules/netdata/default.nix | 33 +++++++++++++++++++ .../home-assistant/component-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/netdata/default.nix 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 93595c5729f1..bc75897f3685 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 57458230bb11..d3d380b7c1ec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4125,6 +4125,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 { };