From c554f54834ca1eb7710b0b3c60730896d0a4bc09 Mon Sep 17 00:00:00 2001 From: phaer Date: Thu, 21 Nov 2024 19:41:49 +0100 Subject: [PATCH] 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 --- modules/dream2nix/WIP-python-pdm/lib.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dream2nix/WIP-python-pdm/lib.nix b/modules/dream2nix/WIP-python-pdm/lib.nix index 737f1135..ea9619a5 100644 --- a/modules/dream2nix/WIP-python-pdm/lib.nix +++ b/modules/dream2nix/WIP-python-pdm/lib.nix @@ -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