From 9d99444486e88456975a7277bf6d9bcb18120615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 20 Jul 2026 14:03:45 -0700 Subject: [PATCH] python3Packages.buildPythonPackage: default to `__structuredAttrs = true` --- doc/release-notes/rl-2611.section.md | 2 ++ pkgs/development/interpreters/python/mk-python-derivation.nix | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/release-notes/rl-2611.section.md b/doc/release-notes/rl-2611.section.md index 3c11e848a37f..fb958d9a7133 100644 --- a/doc/release-notes/rl-2611.section.md +++ b/doc/release-notes/rl-2611.section.md @@ -66,6 +66,8 @@ - `nix-serve-ng` (and `haskellPackages.nix-serve-ng`) is now built against Lix instead of CppNix, following upstream which has switched to Lix as its supported Nix implementation. +- `buildPythonPackage` and `buildPythonApplication` now set `__structuredAttrs = true` by default. You can explicitly set `__structuredAttrs = false` in packages broken by this change. + - Linux kernel configuration has been moved out of the `linux-kernel` field of the platform structure into the kernel builders: - `linux-kernel.name` has been removed. - `linux-kernel.target` is available as the `target` parameter and passthru attribute on the kernel builders. diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 48748b5eec77..88e32f7085a8 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -195,6 +195,8 @@ lib.extendMkDerivation { doCheck ? true, + __structuredAttrs ? true, + ... }@attrs: @@ -397,7 +399,7 @@ lib.extendMkDerivation { python ]; - inherit strictDeps; + inherit __structuredAttrs strictDeps; env = { LANG = "${if python.stdenv.hostPlatform.isDarwin then "en_US" else "C"}.UTF-8";