From cd73a72ce9ddd6007e94375ea214a25930a1ac37 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Jun 2026 15:41:14 +0200 Subject: [PATCH] buildHomeAssistantComponent: migrate packaging dependency into setup hook --- .../home-assistant/build-custom-component/default.nix | 11 ++++------- .../manifest-requirements-check-hook.nix | 1 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/servers/home-assistant/build-custom-component/default.nix b/pkgs/servers/home-assistant/build-custom-component/default.nix index 98fe5115a14d..4e53ae9d56a5 100644 --- a/pkgs/servers/home-assistant/build-custom-component/default.nix +++ b/pkgs/servers/home-assistant/build-custom-component/default.nix @@ -52,13 +52,10 @@ lib.extendMkDerivation { runHook postInstall ''; - nativeBuildInputs = - with home-assistant.python3Packages; - [ - manifestRequirementsCheckHook - packaging - ] - ++ (args.nativeBuildInputs or [ ]); + nativeBuildInputs = [ + manifestRequirementsCheckHook + ] + ++ (args.nativeBuildInputs or [ ]); passthru = { isHomeAssistantComponent = true; diff --git a/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.nix b/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.nix index bb091bd0e1b4..90faa79d7bbf 100644 --- a/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.nix +++ b/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.nix @@ -6,6 +6,7 @@ makeSetupHook { name = "manifest-check-hook"; + propagatedNativeBuildInputs = [ python3Packages.packaging ]; substitutions = { pythonCheckInterpreter = python3Packages.python.interpreter; checkManifest = ./check_manifest.py;