From 75fc137151373aeed7b5b54f9ddfad1fe1bd462f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 23 Jun 2021 20:41:04 +0200 Subject: [PATCH 1/2] python3Packages.nextcloudmonitor: init at 1.2.0 --- .../nextcloudmonitor/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/nextcloudmonitor/default.nix diff --git a/pkgs/development/python-modules/nextcloudmonitor/default.nix b/pkgs/development/python-modules/nextcloudmonitor/default.nix new file mode 100644 index 000000000000..d8e05f8459eb --- /dev/null +++ b/pkgs/development/python-modules/nextcloudmonitor/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +}: + +buildPythonPackage rec { + pname = "nextcloudmonitor"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "meichthys"; + repo = "nextcloud_monitor"; + rev = "v${version}"; + sha256 = "0b0c7gzx1d5kgbsfj1lbrqsirc5g5br6v8w2njaj1ys03kj669cx"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "nextcloudmonitor" ]; + + meta = with lib; { + description = "Python wrapper around nextcloud monitor api"; + homepage = "https://github.com/meichthys/nextcloud_monitor"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4174266094ad..2de8729ce92d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4708,6 +4708,8 @@ in { nexia = callPackage ../development/python-modules/nexia { }; + nextcloudmonitor = callPackage ../development/python-modules/nextcloudmonitor { }; + nghttp2 = (toPythonModule (pkgs.nghttp2.override { inherit (self) python cython setuptools; inherit (pkgs) ncurses; From 79423a31e5d698d8b5b4e6ea4f75cf926cc82118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 23 Jun 2021 20:41:25 +0200 Subject: [PATCH 2/2] home-assistant: update component-packages.nix --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 993ac5e85754..21893ee786e4 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -561,7 +561,7 @@ "neurio_energy" = ps: with ps; [ ]; # missing inputs: neurio "nexia" = ps: with ps; [ nexia ]; "nextbus" = ps: with ps; [ ]; # missing inputs: py_nextbusnext - "nextcloud" = ps: with ps; [ ]; # missing inputs: nextcloudmonitor + "nextcloud" = ps: with ps; [ nextcloudmonitor ]; "nfandroidtv" = ps: with ps; [ ]; "nightscout" = ps: with ps; [ ]; # missing inputs: py-nightscout "niko_home_control" = ps: with ps; [ ]; # missing inputs: niko-home-control