From 497a93b67b04e2bb4abe511d37e4d19fb87c2931 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sat, 14 Dec 2024 09:48:19 +0100 Subject: [PATCH] python312Packages.inkex: fix build using numpy 2 support patch --- pkgs/development/python-modules/inkex/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/inkex/default.nix b/pkgs/development/python-modules/inkex/default.nix index a623a9af873f..ae013099ba75 100644 --- a/pkgs/development/python-modules/inkex/default.nix +++ b/pkgs/development/python-modules/inkex/default.nix @@ -17,6 +17,7 @@ gobject-introspection, pytestCheckHook, gtk3, + fetchpatch2, }: buildPythonPackage { @@ -27,6 +28,16 @@ buildPythonPackage { inherit (inkscape) src; + patches = [ + (fetchpatch2 { + name = "add-numpy-2-support.patch"; + url = "https://gitlab.com/inkscape/extensions/-/commit/13ebc1e957573fea2c3360f676b0f1680fad395d.patch"; + hash = "sha256-0n8L8dUaYYPBsmHlAxd60c5zqfK6NmXJfWZVBXPbiek="; + stripLen = 1; + extraPrefix = "share/extensions/"; + }) + ]; + nativeBuildInputs = [ poetry-core ]; pythonRelaxDeps = [ "numpy" ];