diff --git a/doc/release-notes/rl-2511.section.md b/doc/release-notes/rl-2511.section.md index 2a90ec5891e5..2c5eb1492217 100644 --- a/doc/release-notes/rl-2511.section.md +++ b/doc/release-notes/rl-2511.section.md @@ -61,6 +61,10 @@ - `reaction` has been updated to version 2, which includes some breaking changes. For more information, [check the release article](https://blog.ppom.me/en-reaction-v2). +- The `buildPythonPackage` and `buildPythonApplication` functions now require + an explicit `format` attribute. Previously the default format used setuptools + and called `setup.py` from the source tree, which is deprecated. + The modern alternative is to configure `pyproject = true` with `build-system = [ setuptools ]`. ### Deprecations {#sec-nixpkgs-release-25.11-lib-deprecations} diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index dc9033b5a23b..72fff29e1052 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -137,6 +137,7 @@ let nixos-taskserver = with pkgs.python3.pkgs; buildPythonApplication { + format = "setuptools"; name = "nixos-taskserver"; src = pkgs.runCommand "nixos-taskserver-src" { preferLocalBuild = true; } '' diff --git a/nixos/tests/systemd-confinement/default.nix b/nixos/tests/systemd-confinement/default.nix index 905a2272c0fb..25a553380189 100644 --- a/nixos/tests/systemd-confinement/default.nix +++ b/nixos/tests/systemd-confinement/default.nix @@ -6,6 +6,7 @@ import ../make-test-python.nix { let testLib = pkgs.python3Packages.buildPythonPackage { name = "confinement-testlib"; + format = "setuptools"; unpackPhase = '' cat > setup.py <