python3.pkgs.inkex: Fix schematron tests
libxml2 2.15 disables schematron support by default, using upstream patch that switches to lxml-specific implementation.
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user