From 0eb345fb00c3a9ec32469e22784dd8f718a7f45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Tue, 3 Jun 2025 21:43:20 +0200 Subject: [PATCH] darwin.ICU: fix build with Python 3.13 --- .../darwin/apple-source-releases/ICU/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/ICU/package.nix b/pkgs/os-specific/darwin/apple-source-releases/ICU/package.nix index 6fe6e487b158..fffef1c814a8 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/ICU/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/ICU/package.nix @@ -2,7 +2,7 @@ lib, bootstrapStdenv, buildPackages, - fixDarwinDylibNames, + fetchpatch2, mkAppleDerivation, python3, testers, @@ -26,6 +26,13 @@ let patches = [ # Skip MessageFormatTest test, which is known to crash sometimes and should be suppressed if it does. ./patches/suppress-icu-check-crash.patch + + # Python 3.13 compatibility + (fetchpatch2 { + url = "https://github.com/unicode-org/icu/commit/60d6bd71efc0cde8f861b109ff87dbbf9fc96586.patch?full_index=1"; + hash = "sha256-aJBSVvKidPUjD956jLjyRk8fewUZ9f+Ip4ka6rjevzU="; + stripLen = 2; + }) ]; preConfigure = ''