From cea1222a92bf03fe002b52cb6a833cbfba6683cc Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 19 Feb 2026 12:39:31 +0000 Subject: [PATCH 1/2] python313Packages.scikit-build-core: backport upstream patch for Darwin --- .../python-modules/scikit-build-core/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/scikit-build-core/default.nix b/pkgs/development/python-modules/scikit-build-core/default.nix index a436bb78aa32..5e2e86cca1d8 100644 --- a/pkgs/development/python-modules/scikit-build-core/default.nix +++ b/pkgs/development/python-modules/scikit-build-core/default.nix @@ -1,7 +1,9 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, # build-system hatch-vcs, @@ -37,7 +39,15 @@ buildPythonPackage rec { hash = "sha256-zBTDacTkeclz+/X0SUl1xkxLz4zsfeLOD4Ew0V1Y1iU="; }; - postPatch = ""; + # 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="; + }) + ]; build-system = [ hatch-vcs From b9377a648392f6bc72a9c78251a4ff93b8977052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 19 Feb 2026 13:57:23 +0100 Subject: [PATCH 2/2] python3Packages.scikit-build-core: avoid rebuilds on linux For now. We'll clean this up on staging. --- pkgs/development/python-modules/scikit-build-core/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/scikit-build-core/default.nix b/pkgs/development/python-modules/scikit-build-core/default.nix index 5e2e86cca1d8..b91e36b4fac8 100644 --- a/pkgs/development/python-modules/scikit-build-core/default.nix +++ b/pkgs/development/python-modules/scikit-build-core/default.nix @@ -49,6 +49,8 @@ buildPythonPackage rec { }) ]; + postPatch = ""; + build-system = [ hatch-vcs hatchling