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:
parent
bcf52f9343
commit
3bfb20e638
@ -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 "")) [
|
||||
|
Loading…
Reference in New Issue
Block a user