From 3bfb20e63832e703bb7a380e761e9b9438a303d7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 13 Jun 2024 16:20:20 +0200 Subject: [PATCH] mk-python-derivation: add pythonRelaxDepsHook Configuring `pythonRelaxDeps` or `pythonRemoveDeps` does not require adding `pythonRelaxDepsHook` into `nativeBuildInputs` anymore. Co-Authored-By: superherointj <5861043+superherointj@users.noreply.github.com> --- pkgs/development/interpreters/python/mk-python-derivation.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 4c45d9603be8..ea93a5cfe719 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -17,6 +17,7 @@ , pythonImportsCheckHook , pythonNamespacesHook , pythonOutputDistHook +, pythonRelaxDepsHook , pythonRemoveBinBytecodeHook , pythonRemoveTestsDirHook , pythonRuntimeDepsCheckHook @@ -252,6 +253,8 @@ let # because the hook that checks for conflicts uses setuptools. # pythonCatchConflictsHook + ] ++ optionals (attrs ? pythonRelaxDeps || attrs ? pythonRemoveDeps) [ + pythonRelaxDepsHook ] ++ optionals removeBinBytecode [ pythonRemoveBinBytecodeHook ] ++ optionals (hasSuffix "zip" (attrs.src.name or "")) [