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/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 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 453634d68afe..e157a05713e1 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;