Skip to content

Commit

Permalink
pdm: sort extras before making the key
Browse files Browse the repository at this point in the history
...otherwise we seem to get them in the order they are
declared in in pyproject.toml, which seemingly might not
be the same as in the lock file where they are sorted
  • Loading branch information
phaer committed Nov 21, 2024
1 parent 91bec8a commit c554f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dream2nix/WIP-python-pdm/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
mkExtrasKey = dep @ {extras ? [], ...}:
if extras == []
then "default"
else lib.concatStringsSep "," extras;
else lib.concatStringsSep "," (lib.naturalSort extras);

# Constructs dependency entry for internal use.
# We could use the pyproject.nix representation directly instead, but it seems
Expand Down

0 comments on commit c554f54

Please sign in to comment.