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>
This commit is contained in:
Martin Weinelt 2024-06-13 16:20:20 +02:00
parent bcf52f9343
commit 3bfb20e638
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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 "")) [