pdm: sort extras before making the key

...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
This commit is contained in:
phaer 2024-11-21 19:41:49 +01:00
parent 91bec8a085
commit c554f54834

View File

@ -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