From deceeb08449cb693b8289c9e7a85b9068235ee02 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 23 Oct 2025 18:56:35 -0700 Subject: [PATCH] =?UTF-8?q?unicode-paracode:=20Fix=20crash=20on=20Python?= =?UTF-8?q?=20=E2=89=A5=203.13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- pkgs/by-name/un/unicode-paracode/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/un/unicode-paracode/package.nix b/pkgs/by-name/un/unicode-paracode/package.nix index 2b3ac152a4ce..8a3d7028f74b 100644 --- a/pkgs/by-name/un/unicode-paracode/package.nix +++ b/pkgs/by-name/un/unicode-paracode/package.nix @@ -19,6 +19,14 @@ python3Packages.buildPythonApplication rec { sha256 = "sha256-FHAlZ5HID/FE9+YR7Dmc3Uh7E16QKORoD8g9jgTeQdY="; }; + patches = [ + # Fix 3.13+ mutable locals() + (fetchurl { + url = "https://github.com/garabik/unicode/commit/412952b9b4730263f5b560924b84f8934ea4ba21.patch"; + hash = "sha256-Rfm6Jc7V5n7ggQzA/yeDrYedGMWqRkeUX6FRCUkBWcI="; + }) + ]; + ucdtxt = fetchurl { url = "https://www.unicode.org/Public/16.0.0/ucd/UnicodeData.txt"; sha256 = "sha256-/1jlgjvQlRZlZKAG5H0RETCBPc+L8jTvefpRqHDttI8=";