diff --git a/pkgs/development/interpreters/python/python-packages-base.nix b/pkgs/development/interpreters/python/python-packages-base.nix index c513561ce6fb3..5b78dd0861ab4 100644 --- a/pkgs/development/interpreters/python/python-packages-base.nix +++ b/pkgs/development/interpreters/python/python-packages-base.nix @@ -51,7 +51,9 @@ let args: if !(lib.isFunction args) && (args ? stdenv) then lib.warnIf (lib.oldestSupportedReleaseIsAtLeast 2511) '' - Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated. You should use their `.override` function instead, e.g: + ${ + args.name or args.pname or "" + }: Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated. You should use their `.override` function instead, e.g: buildPythonPackage.override { stdenv = customStdenv; } { } '' (f'.override { inherit (args) stdenv; } (removeAttrs args [ "stdenv" ])) else