From 383959baa6a6d19d7fa52a4bb9add0dde3825819 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 1 Feb 2025 16:03:38 -0500 Subject: [PATCH] python312Packages.fontmake: fix build with fonttools 4.55 --- pkgs/development/python-modules/fontmake/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/fontmake/default.nix b/pkgs/development/python-modules/fontmake/default.nix index 5572181e7cf6..37c4a52a1237 100644 --- a/pkgs/development/python-modules/fontmake/default.nix +++ b/pkgs/development/python-modules/fontmake/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, pytestCheckHook, fontmath, fonttools, @@ -26,6 +27,16 @@ buildPythonPackage rec { hash = "sha256-ZlK8QyZ5cIEphFiZXMV/Z5pL9H62X2UwLBtpwLGpUMQ="; }; + patches = [ + # Update to FontTools 4.55 and glyphsLib 6.9.5 + # https://github.com/googlefonts/fontmake/pull/1133 + (fetchpatch2 { + url = "https://github.com/googlefonts/fontmake/commit/ca96d25faa67638930ddc7f9bd1ab218a76caf22.patch"; + includes = [ "tests/test_main.py" ]; + hash = "sha256-vz+KeWiGCpUdX5HaXDdyyUCbuMkIylB364j6cD7xR1E="; + }) + ]; + build-system = [ setuptools setuptools-scm