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;