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)
This commit is contained in:
@@ -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
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user