Unverified Commit b50d97e6 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

treewide: add explicit format attribute for Python packages (#421660)

parents bfa4f7ba d2e9be2b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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}

+1 −0
Original line number Diff line number Diff line
@@ -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; } ''
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ import ../make-test-python.nix {
    let
      testLib = pkgs.python3Packages.buildPythonPackage {
        name = "confinement-testlib";
        format = "setuptools";
        unpackPhase = ''
          cat > setup.py <<EOF
          from setuptools import setup
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ with pythonPackages;
buildPythonApplication rec {
  pname = "greg";
  version = "0.4.8";
  format = "setuptools";

  disabled = !isPy3k;

+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
buildPythonApplication {
  pname = "hushboard";
  version = "unstable-2021-03-17";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "stuartlangridge";
Loading