Commit e2f75c6f authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

python3Packages.buildPythonPackage: use pythonRelaxDepsHook iff related attributes non-empty

parent e25f3c91
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -308,7 +308,9 @@ let
        #
        pythonCatchConflictsHook
      ]
      ++ optionals (attrs ? pythonRelaxDeps || attrs ? pythonRemoveDeps) [
      ++
        optionals (finalAttrs.pythonRelaxDeps or [ ] != [ ] || finalAttrs.pythonRemoveDeps or [ ] != [ ])
          [
            pythonRelaxDepsHook
          ]
      ++ optionals removeBinBytecode [