From fb1098a45c2fab12474f4a1ddfdec34605fc0409 Mon Sep 17 00:00:00 2001 From: Gerhard Schwanzer Date: Sun, 12 Jul 2026 23:44:37 +0200 Subject: [PATCH] python314Packages.vtherm-api: don't propagate home-assistant Home Assistant is the host application and is already provided by consumers. Keep it in nativeCheckInputs for the upstream tests and import check without adding the full application to the library closure. Restrict the package to Home Assistant's Python version, matching homeassistant-stubs and avoiding unsupported cross-version check environments. Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol) --- pkgs/development/python-modules/vtherm-api/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/vtherm-api/default.nix b/pkgs/development/python-modules/vtherm-api/default.nix index 37abc93a5435..bc8f9d5dbe6a 100644 --- a/pkgs/development/python-modules/vtherm-api/default.nix +++ b/pkgs/development/python-modules/vtherm-api/default.nix @@ -3,9 +3,9 @@ buildPythonPackage, fetchFromGitHub, home-assistant, - pythonOlder, pytest-asyncio, pytestCheckHook, + python, setuptools, }: @@ -14,7 +14,7 @@ buildPythonPackage (finalAttrs: { version = "0.3.0"; pyproject = true; - disabled = pythonOlder "3.14"; + disabled = python.version != home-assistant.python3Packages.python.version; src = fetchFromGitHub { owner = "jmcollin78"; @@ -25,9 +25,8 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; - dependencies = [ home-assistant ]; - nativeCheckInputs = [ + home-assistant pytest-asyncio pytestCheckHook ];