Skip to content

Commit 0148e30

Browse files
authored
Update mk-python-derivation.nix
1 parent df01a69 commit 0148e30

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

pkgs/development/interpreters/python/mk-python-derivation.nix

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -425,19 +425,8 @@ let
425425
# default to python's platforms
426426
platforms = python.meta.platforms;
427427
isBuildPythonPackage = python.meta.platforms;
428-
}
429-
//
430-
lib.optionalAttrs
431-
(
432-
attrs ? src
433-
&& attrs.src ? meta
434-
&& attrs.src.meta ? identifiers
435-
&& attrs.src.meta.identifiers ? purlParts
436-
)
437-
{
438-
identifiers.purlParts = attrs.src.meta.identifiers.purlParts;
439-
}
440-
// meta;
428+
identifiers.purlParts = attrs.src.meta.identifiers.purlParts or {};
429+
} // meta;
441430
}
442431
// optionalAttrs (attrs ? checkPhase) {
443432
# If given use the specified checkPhase, otherwise use the setup hook.

0 commit comments

Comments
 (0)