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

This commit is contained in:
Vladimír Čunát
2026-02-19 15:15:24 +00:00
committed by GitHub
@@ -1,7 +1,9 @@
{
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 = [