Unverified Commit 0ec24d50 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

treewide: migrate buildPythonPackage to `finalAttrs` (#510587)

parents 5481d69e ccf5538a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -15,12 +15,12 @@
  pkgs,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "openpaperwork-core";
  inherit (callPackage ./src.nix { }) version src;
  pyproject = true;

  sourceRoot = "${src.name}/openpaperwork-core";
  sourceRoot = "${finalAttrs.src.name}/openpaperwork-core";

  # Python 2.x is not supported.
  disabled = !isPy3k && !isPyPy;
@@ -61,4 +61,4 @@ buildPythonPackage rec {
    ];
    platforms = lib.platforms.linux;
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -15,12 +15,12 @@
  pkgs,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "openpaperwork-gtk";
  inherit (callPackage ./src.nix { }) version src;
  pyproject = true;

  sourceRoot = "${src.name}/openpaperwork-gtk";
  sourceRoot = "${finalAttrs.src.name}/openpaperwork-gtk";

  # Python 2.x is not supported.
  disabled = !isPy3k && !isPyPy;
@@ -61,4 +61,4 @@ buildPythonPackage rec {
    ];
    platforms = lib.platforms.linux;
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -26,12 +26,12 @@
  setuptools-scm,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "paperwork-backend";
  inherit (callPackage ./src.nix { }) version src;
  pyproject = true;

  sourceRoot = "${src.name}/paperwork-backend";
  sourceRoot = "${finalAttrs.src.name}/paperwork-backend";

  patches = [
    # disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700
@@ -93,4 +93,4 @@ buildPythonPackage rec {
      symphorien
    ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -19,12 +19,12 @@
  pkgs,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "paperwork-shell";
  inherit (callPackage ./src.nix { }) version src;
  pyproject = true;

  sourceRoot = "${src.name}/paperwork-shell";
  sourceRoot = "${finalAttrs.src.name}/paperwork-shell";

  # Python 2.x is not supported.
  disabled = !isPy3k && !isPyPy;
@@ -71,4 +71,4 @@ buildPythonPackage rec {
      symphorien
    ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  makeWrapper,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "hyprshade";
  version = "4.0.1";
  pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "loqusion";
    repo = "hyprshade";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-zK8i2TePJ4cEtGXe/dssHWg+ioCTo1NyqzInQhMaB8w=";
  };

@@ -45,4 +45,4 @@ buildPythonPackage rec {
    maintainers = with lib.maintainers; [ willswats ];
    platforms = lib.platforms.linux;
  };
}
})
Loading