commit:     9d526ab54ce20a00c12d7850ecb3396c8000f9d6
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Mar  2 14:55:47 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  3 21:45:30 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d526ab5

app-text/xmldiff: add 2.7.0

This version no longer depends on deprecated (and removed)
pkg_resources.

Closes: https://bugs.gentoo.org/938597
Closes: https://bugs.gentoo.org/959393
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/194
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/xmldiff/Manifest                          |  1 +
 .../xmldiff/files/xmldiff-2.7.0-fix-test.patch     | 13 ++++++++++
 app-text/xmldiff/xmldiff-2.7.0.ebuild              | 28 ++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/app-text/xmldiff/Manifest b/app-text/xmldiff/Manifest
index 7c2ac3fa7471..d44f135d3f24 100644
--- a/app-text/xmldiff/Manifest
+++ b/app-text/xmldiff/Manifest
@@ -1 +1,2 @@
 DIST xmldiff-2.6.3.tar.gz 86132 BLAKE2B 
9e5777f498677bf12a603d6636833d4942fb1af2c461e9a60e2dccf89c3776f72018407928991c8a9f53abe8c704ca9a736a4f0f81ce3ca23e1657a896d43804
 SHA512 
ba25b8cc9866c66bc829a82d1f20108c17a09e2f46735763317f7fd6f60c3920ba6d3114454ead1461de4a59c177065291bb71bebb7ee9c4a03f3584452a9e33
+DIST xmldiff-2.7.0.tar.gz 87596 BLAKE2B 
56c1a08ef67314a171a24b2aa58068b19efc8e219eac0f815bbb7663c84843d0b00b8b16487ab02808c35295b393cab8dc2357877c8d0d54031201a32d85f821
 SHA512 
e285c0e30b4a6f057dd4888599a6bd354b1f1465598eafa7a9ac91d3eb2e8b04e25e466d410dde84d1b6986b647d3759bad322036f3c5c9cd498e8fc291ab888

diff --git a/app-text/xmldiff/files/xmldiff-2.7.0-fix-test.patch 
b/app-text/xmldiff/files/xmldiff-2.7.0-fix-test.patch
new file mode 100644
index 000000000000..981cd9771449
--- /dev/null
+++ b/app-text/xmldiff/files/xmldiff-2.7.0-fix-test.patch
@@ -0,0 +1,13 @@
+Backported from upstream commit 57e16ce3d92067c6246c3de04f2d4b9803f6f25b
+
+--- a/tests/test_main.py
++++ b/tests/test_main.py
+@@ -44,7 +44,7 @@ class MainAPITests(unittest.TestCase):
+         with open(LEFT_FILE, "rb") as infile:
+             with open(RIGHT_FILE, "rb") as infile:
+                 # Give something else, and it fails:
+-                with self.assertRaises(ValueError):
++                with self.assertRaises(TypeError):
+                     main.diff_texts(infile, infile)
+ 
+     def test_api_diff_trees(self):

diff --git a/app-text/xmldiff/xmldiff-2.7.0.ebuild 
b/app-text/xmldiff/xmldiff-2.7.0.ebuild
new file mode 100644
index 000000000000..3d3d1e100207
--- /dev/null
+++ b/app-text/xmldiff/xmldiff-2.7.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{12..14} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Tool that figures out the differences between two similar XML 
files"
+HOMEPAGE="
+       https://github.com/Shoobx/xmldiff
+       https://pypi.org/project/xmldiff/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+       >=dev-python/lxml-3.1.0[${PYTHON_USEDEP}]
+"
+
+DOCS=( CHANGES.rst README.rst )
+
+PATCHES=( "${FILESDIR}"/${PN}-2.7.0-fix-test.patch )
+
+distutils_enable_tests unittest

Reply via email to