python-overrides/lxml: fix build w/ libxml-2.15

Closes #76
This commit is contained in:
Maximilian Bosch 2025-10-27 11:45:15 +01:00
parent 6ae9b507c8
commit be208eac08
No known key found for this signature in database
2 changed files with 20 additions and 0 deletions

View file

@ -77,6 +77,7 @@ let
lxml = prev.lxml.overrideAttrs (
{
buildInputs ? [ ],
patches ? [ ],
...
}:
{
@ -85,6 +86,13 @@ let
libxml2
zlib
];
patches = patches ++ [
# The upstream fix for this is
# https://github.com/lxml/lxml/commit/f7a813483c4482dd114e7ee8b42b54337e285503,
# however, this doesn't help us here because the `etree.c` file is already generated
# (we're using the wheel), so we have to patch the C file directly.
./fix-lxml-libxml-2.15-build.patch
];
}
);
xmlsec = prev.xmlsec.overrideAttrs (