buildPythonPackage: comment on passthru.__stdenvPythonCompat

This commit is contained in:
Yueh-Shun Li
2026-01-20 23:17:19 +08:00
parent 5c219b59be
commit f83867d2d4
@@ -418,6 +418,9 @@ lib.extendMkDerivation {
optional-dependencies
;
updateScript = nix-update-script { };
# __stdenvPythonCompat attribute is here for overrideStdenvCompat in `python-packages-base.nix` to work.
# It is internal and subject to changes.
# TODO(@ShamrockLee): Remove when overrideStdenvCompat gets removed.
${if attrs ? stdenv then "__stdenvPythonCompat" else null} = attrs.stdenv;
}
// attrs.passthru or { };