From a54a2b42942141787cd908f6a0f265499d98e47c Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 6 Jun 2026 21:58:31 -0700 Subject: [PATCH 1/2] python3Packages.mitsubishi-comfort: init at 0.3.0 --- .../mitsubishi-comfort/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/mitsubishi-comfort/default.nix diff --git a/pkgs/development/python-modules/mitsubishi-comfort/default.nix b/pkgs/development/python-modules/mitsubishi-comfort/default.nix new file mode 100644 index 000000000000..9aaeab111986 --- /dev/null +++ b/pkgs/development/python-modules/mitsubishi-comfort/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + aioresponses, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "mitsubishi-comfort"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "nikolairahimi"; + repo = "mitsubishi-comfort"; + tag = "v${finalAttrs.version}"; + hash = "sha256-O/HAPb7MYU0/LEVS4ynddQuN6HKZUOUKWFn/CMz2q5E="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "mitsubishi_comfort" ]; + + meta = { + description = "Async Python library for Mitsubishi minisplit control via Kumo Cloud and local API"; + homepage = "https://github.com/nikolairahimi/mitsubishi-comfort"; + changelog = "https://github.com/nikolairahimi/mitsubishi-comfort/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 89ca0b58fe5f..f263541c1ba4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10109,6 +10109,8 @@ self: super: with self; { mitogen = callPackage ../development/python-modules/mitogen { }; + mitsubishi-comfort = callPackage ../development/python-modules/mitsubishi-comfort { }; + mixbox = callPackage ../development/python-modules/mixbox { }; mixins = callPackage ../development/python-modules/mixins { }; From 60990066f9e4d327c948c48d65f9cb79d00e7800 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 6 Jun 2026 21:59:43 -0700 Subject: [PATCH 2/2] home-assistant: update component packages --- 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 71b1cac92d68..dee21354b5cf 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4063,7 +4063,8 @@ ]; "mitsubishi_comfort" = ps: with ps; [ - ]; # missing inputs: mitsubishi-comfort + mitsubishi-comfort + ]; "mjpeg" = ps: with ps; [ ]; @@ -8301,6 +8302,7 @@ "min_max" "minecraft_server" "minio" + "mitsubishi_comfort" "mjpeg" "moat" "mobile_app"