Skip to content

Commit

Permalink
build.lib.renderers.mkDerivationEditable: Add argument to override sy…
Browse files Browse the repository at this point in the history
…nthetic pyproject.toml project table

So that dynamic metadata can be injected
  • Loading branch information
adisbladis committed Jan 3, 2025
1 parent 6a109b5 commit e14a14d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/lib/renderers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ in
else
project.projectRoot
),
# Synthetic pyproject.toml project table overrides
projectOverrides ? { },
}:
assert isString root;
assert assertMsg (!hasPrefix storeDir root) ''
Expand Down Expand Up @@ -152,7 +154,8 @@ in
}
// optionalAttrs (project' ? entry-points) {
inherit (project') entry-points;
};
}
// projectOverrides;

# Allow direct references in dependencies and other metadata
tool.hatch.metadata.allow-direct-references = true;
Expand Down

0 comments on commit e14a14d

Please sign in to comment.