diff --git a/python-lxml.spec b/python-lxml.spec index 53711ae..5a15bc6 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -67,6 +67,10 @@ Python 3 version. sed -i "s/Cython.*/Cython/" requirements.txt sed -i 's/"Cython.*",/"Cython",/' pyproject.toml +# Fix doctest failing with the latest libxslt (rhbz#2301176) +# Reported upstream: https://bugs.launchpad.net/lxml/+bug/2075141 +sed -i "s/read_network=False/read_network=False,read_file=False/" doc/resolvers.txt + %generate_buildrequires %pyproject_buildrequires -x source%{?with_extras:,cssselect,html5,htmlsoup,html_clean}