buildPython*: move argument-dependent let-in variables down below finalAttrs

This commit is intentionally unformatted
for smoother merging and rebasing experience.
This commit is contained in:
Yueh-Shun Li
2025-02-02 14:26:22 +08:00
parent 04c39df325
commit 2b6cde5354
@@ -206,6 +206,11 @@ in
}@attrs:
let
# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
self = (
stdenv.mkDerivation (
finalAttrs:
let
format' =
assert (pyproject != null) -> (format == null);
if pyproject != null then
@@ -270,10 +275,7 @@ let
isSetuptoolsDependency = isSetuptoolsDependency' (attrs.pname or null);
# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
self = (
stdenv.mkDerivation (
finalAttrs:
in
(cleanAttrs attrs)
// {