From 21c4a8b1db68021bca41c2b9ff488e5fa30c5b98 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 23 Jan 2026 18:12:04 +0100 Subject: [PATCH] python3.pkgs.inkex: Fix schematron tests libxml2 2.15 disables schematron support by default, using upstream patch that switches to lxml-specific implementation. --- pkgs/development/python-modules/inkex/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/inkex/default.nix b/pkgs/development/python-modules/inkex/default.nix index 2a77286bd94d..0ea95ed65750 100644 --- a/pkgs/development/python-modules/inkex/default.nix +++ b/pkgs/development/python-modules/inkex/default.nix @@ -2,6 +2,7 @@ lib, stdenv, buildPythonPackage, + fetchpatch, inkscape, poetry-core, cssselect, @@ -25,6 +26,17 @@ buildPythonPackage { inherit (inkscape) src; + patches = [ + # Fix tests with newer libxml2 + # https://gitlab.com/inkscape/extensions/-/merge_requests/712 + (fetchpatch { + url = "https://gitlab.com/inkscape/extensions/-/commit/b04ab718b400778a264f2085bbc779faebc08368.patch"; + hash = "sha256-BXRcfoeX7X8+x6CuKKBhrnzUHIwgnPay22Z8+rPZS54="; + stripLen = 1; + extraPrefix = "share/extensions/"; + }) + ]; + build-system = [ poetry-core ]; pythonRelaxDeps = [ @@ -72,9 +84,6 @@ buildPythonPackage { "tests/test_inkex_gui_window.py" # Failed to find pixmap 'image-missing' in /build/source/tests/data/ "tests/test_inkex_gui_pixmaps.py" - # Fails with libxml2 >= 2.15 with "lxml.etree was compiled without Schematron support" - "inkex/tester/test_inx_file.py" - "tests/test_inkex_inx.py" ]; postPatch = ''