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" ];