From 1bbbf826a63a116961fbda9260da69d563592e4b Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 16 Feb 2026 13:21:13 -0800 Subject: [PATCH 1/2] python3Packages.visionpluspython: init at 1.0.2 --- .../visionpluspython/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/visionpluspython/default.nix diff --git a/pkgs/development/python-modules/visionpluspython/default.nix b/pkgs/development/python-modules/visionpluspython/default.nix new file mode 100644 index 000000000000..f897598459f3 --- /dev/null +++ b/pkgs/development/python-modules/visionpluspython/default.nix @@ -0,0 +1,38 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pyjwt, + setuptools, +}: + +buildPythonPackage rec { + pname = "visionpluspython"; + version = "1.0.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-9tHjRWMVxi1diPlKGPXLRgi5rkuAXskStUBIqfO0oh4="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + pyjwt + ]; + + # no tests + doCheck = false; + + pythonImportsCheck = [ "visionpluspython" ]; + + meta = { + description = "Python API wrapper for Watts Vision+ smart home system"; + homepage = "https://github.com/Watts-Digital/visionpluspython"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4914e8bfc734..ddfa22d889fc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20480,6 +20480,8 @@ self: super: with self; { viser = callPackage ../development/python-modules/viser { }; + visionpluspython = callPackage ../development/python-modules/visionpluspython { }; + visions = callPackage ../development/python-modules/visions { }; visitor = callPackage ../development/python-modules/visitor { }; From 40ceadbe49b3c3bdd673f83571747d840d681270 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 16 Feb 2026 13:21:19 -0800 Subject: [PATCH 2/2] home-assistant: regenerate component-packages.nix Adds the watts component now that visionpluspython is packaged. --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index de8714897649..c4483e2e9dee 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6772,7 +6772,8 @@ python-matter-server pyturbojpeg securetar - ]; # missing inputs: visionpluspython + visionpluspython + ]; "watttime" = ps: with ps; [ aiowatttime @@ -8131,6 +8132,7 @@ "water_heater" "waterfurnace" "watergate" + "watts" "watttime" "waze_travel_time" "weather"