From 5cca230726f7d334aed23252a1f9517e0190a7e8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 21 Jan 2021 17:39:35 +0100 Subject: [PATCH 1/2] python3Packages.vsure: init at 1.6.1 --- .../python-modules/vsure/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/vsure/default.nix diff --git a/pkgs/development/python-modules/vsure/default.nix b/pkgs/development/python-modules/vsure/default.nix new file mode 100644 index 000000000000..578578a21b17 --- /dev/null +++ b/pkgs/development/python-modules/vsure/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "vsure"; + version = "1.6.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1lsr0wl1dwbzpn68ww348yk6v42bw89nrghz5gjsimrr428zw6qn"; + }; + + propagatedBuildInputs = [ requests ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "verisure" ]; + + meta = with lib; { + description = "Python library for working with verisure devices"; + homepage = "https://github.com/persandstrom/python-verisure"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8f2d5c92bf24..4ce4668c71d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8042,6 +8042,8 @@ in { vsts-cd-manager = callPackage ../development/python-modules/vsts-cd-manager { }; + vsure = callPackage ../development/python-modules/vsure { }; + vtk = self.vtk_7; vtk_7 = toPythonModule (pkgs.vtk_7.override { pythonInterpreter = python; From 2ab5b854ad4ea5f0e9cd1b68b986a8fb852a2bd6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 21 Jan 2021 17:40:28 +0100 Subject: [PATCH 2/2] home-assistant: update component-packages --- 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 97cd133ade93..4f024ef7bc2c 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -895,7 +895,7 @@ "velux" = ps: with ps; [ pyvlx ]; "venstar" = ps: with ps; [ ]; # missing inputs: venstarcolortouch "vera" = ps: with ps; [ pyvera ]; - "verisure" = ps: with ps; [ jsonpath ]; # missing inputs: vsure + "verisure" = ps: with ps; [ jsonpath vsure ]; "versasense" = ps: with ps; [ ]; # missing inputs: pyversasense "version" = ps: with ps; [ pyhaversion ]; "vesync" = ps: with ps; [ ]; # missing inputs: pyvesync