From ae65d794abaf674ceef8ec1c9e44517575c17954 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 7 Aug 2023 20:08:43 +0200 Subject: [PATCH] python3-lxml: update to 4.9.3. --- .../patches/fix-test-html-prefix-nsmap.diff | 13 +++++++++++++ srcpkgs/python3-lxml/patches/fix-tests-io.patch | 13 +++++++++++++ srcpkgs/python3-lxml/template | 5 +++-- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/python3-lxml/patches/fix-test-html-prefix-nsmap.diff create mode 100644 srcpkgs/python3-lxml/patches/fix-tests-io.patch diff --git a/srcpkgs/python3-lxml/patches/fix-test-html-prefix-nsmap.diff b/srcpkgs/python3-lxml/patches/fix-test-html-prefix-nsmap.diff new file mode 100644 index 00000000000000..084769b69aeb9a --- /dev/null +++ b/srcpkgs/python3-lxml/patches/fix-test-html-prefix-nsmap.diff @@ -0,0 +1,13 @@ +diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py +index 0339796d..de584c56 100644 +--- a/src/lxml/tests/test_etree.py ++++ b/src/lxml/tests/test_etree.py +@@ -3072,8 +3072,6 @@ class ETreeOnlyTestCase(HelperTestCase): + el = etree.HTML('aa').find('.//page-description') + if etree.LIBXML_VERSION < (2, 9, 11): + self.assertEqual({'hha': None}, el.nsmap) +- else: +- self.assertEqual({}, el.nsmap) + + def test_getchildren(self): + Element = self.etree.Element diff --git a/srcpkgs/python3-lxml/patches/fix-tests-io.patch b/srcpkgs/python3-lxml/patches/fix-tests-io.patch new file mode 100644 index 00000000000000..9a3001d4e9265e --- /dev/null +++ b/srcpkgs/python3-lxml/patches/fix-tests-io.patch @@ -0,0 +1,13 @@ +diff --git a/src/lxml/tests/test_io.py b/src/lxml/tests/test_io.py +index cbdbcef..efbd3fd 100644 +--- a/src/lxml/tests/test_io.py ++++ b/src/lxml/tests/test_io.py +@@ -312,6 +312,7 @@ class _IOTestCaseBase(HelperTestCase): + self.assertEqual(5, len(boms)) + xml = uxml.encode("utf-16") + self.assertTrue(xml[:2] in boms, repr(xml[:2])) ++ return True + + f = tempfile.NamedTemporaryFile(delete=False) + try: + diff --git a/srcpkgs/python3-lxml/template b/srcpkgs/python3-lxml/template index f126c4005fbf15..8251b74c7b53f4 100644 --- a/srcpkgs/python3-lxml/template +++ b/srcpkgs/python3-lxml/template @@ -1,6 +1,6 @@ # Template file for 'python3-lxml' pkgname=python3-lxml -version=4.9.2 +version=4.9.3 revision=1 build_style=python3-module make_build_args="--with-cython" @@ -12,8 +12,9 @@ short_desc="Python binding for the libxml2 and libxslt libraries" maintainer="Orphaned " license="BSD-3-Clause, custom:ElementTree" homepage="https://lxml.de/" +changelog="https://raw.githubusercontent.com/lxml/lxml/master/CHANGES.txt" distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz" -checksum=c057e334efc357fc88eb71b888d2df3a44cf3c7aaac56a8753e92090c5217050 +checksum=42b9ab83cb8739d817c7fff41c20f31aa61625bb6f6ab333873a5f3406b139ac do_check() { make test3