weblate: make pythonRelaxDeps more robust

(cherry picked from commit d6caed0ac6)
This commit is contained in:
Robert Schütz 2026-06-15 15:12:16 -07:00 committed by Kerstin Humm
commit bb245a0d50
No known key found for this signature in database
GPG key ID: 40293358C7B9326B

View file

@ -111,7 +111,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
];
in
lib.concatMap (
p: if p == null || lib.elem p.pname coreDeps then [ ] else [ p.pname ]
p: if !p ? "pname" || lib.elem p.pname coreDeps then [ ] else [ p.pname ]
) finalAttrs.passthru.dependencies;
dependencies =