Unverified Commit b744b40a authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

python313Packages.scikit-build-core: backport upstream patch for Darwin (#492085)

parents febb3879 b9377a64
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,

  # build-system
  hatch-vcs,
@@ -37,6 +39,16 @@ buildPythonPackage rec {
    hash = "sha256-zBTDacTkeclz+/X0SUl1xkxLz4zsfeLOD4Ew0V1Y1iU=";
  };

  # TODO: Rebuild avoidance; clean up on `staging`.
  ${if stdenv.hostPlatform.isDarwin then "patches" else null} = [
    # Backport an upstream commit to fix the tests on Darwin.
    (fetchpatch {
      url = "https://github.com/scikit-build/scikit-build-core/commit/c30f52a3b2bd01dc05f23d3b89332c213006afe0.patch";
      excludes = [ ".github/workflows/ci.yml" ];
      hash = "sha256-5E9QfF5UcSNY1wzHzieEEHEPYzPjUTb66CKCodYb9vo=";
    })
  ];

  postPatch = "";

  build-system = [