commit: b8fe96dcca843753d29bc84c38403c6d07bdf65e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 15 09:54:50 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 15 10:49:31 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8fe96dc
dev-python/mypy: Fix libxml2-2.15 test failures
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/mypy/mypy-1.18.2.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dev-python/mypy/mypy-1.18.2.ebuild
b/dev-python/mypy/mypy-1.18.2.ebuild
index 26b7eb6887c4..d2334001ccb4 100644
--- a/dev-python/mypy/mypy-1.18.2.ebuild
+++ b/dev-python/mypy/mypy-1.18.2.ebuild
@@ -64,6 +64,12 @@ src_prepare() {
# don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1
sed -i -e '/addopts/s:-nauto::' pyproject.toml || die
+
+ # https://github.com/python/mypy/issues/20070
+ if has_version ">=dev-libs/libxml2-2.15"; then
+ sed -e 's:<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">:<meta charset="UTF-8">:' \
+ -i test-data/unit/reports.test || die
+ fi
}
python_compile() {