diff --git a/pkgs/development/interpreters/python/hooks/default.nix b/pkgs/development/interpreters/python/hooks/default.nix index bd29d493ebb8..7fe41a6f8533 100644 --- a/pkgs/development/interpreters/python/hooks/default.nix +++ b/pkgs/development/interpreters/python/hooks/default.nix @@ -107,11 +107,12 @@ in { }; } ./python-imports-check-hook.sh) {}; - pythonNamespacesHook = callPackage ({ makePythonHook, findutils }: + pythonNamespacesHook = callPackage ({ makePythonHook, buildPackages }: makePythonHook { name = "python-namespaces-hook.sh"; substitutions = { - inherit pythonSitePackages findutils; + inherit pythonSitePackages; + inherit (buildPackages) findutils; }; } ./python-namespaces-hook.sh) {};