python313Packages.mat2: fix broken test (#439328)

Sandro d11bc709 94040095

Changed files
+12 -5
pkgs
by-name
ma
development
python-modules
+2 -5
pkgs/by-name/ma/mat2/package.nix
···
{
-
# On Python 3.13, `tests/test_libmat2.py::TestCleaning::test_html` fails with
-
#
-
# ValueError: The closing tag title doesn't have a corresponding opening one in ./tests/data/clean.html.
-
python312Packages,
+
python3Packages,
}:
-
with python312Packages;
+
with python3Packages;
toPythonApplication mat2
+10
pkgs/development/python-modules/mat2/default.nix
···
url = "https://0xacab.org/jvoisin/mat2/-/commit/473903b70e1b269a6110242a9c098a10c18554e2.patch";
hash = "sha256-vxxjAFwiTDlcTT3ZlfhOG4rlzBJS+LhLoA++8y2hEok=";
})
+
(fetchpatch {
+
name = "fix-test-on-python313.patch";
+
url = "https://0xacab.org/jvoisin/mat2/-/commit/f07344444d6d2f04a1f93e2954f4910b194bee0c.patch";
+
hash = "sha256-y756sKkjGO11A2lrRsXAwWgupOZ00u0cDypvkbsiNbY=";
+
})
+
(fetchpatch {
+
name = "fix-test-on-python312.patch";
+
url = "https://0xacab.org/jvoisin/mat2/-/commit/7a8ea224bc327b8ee929379d577c74968ea1c352.patch";
+
hash = "sha256-pPiYhoql5WhjhLKvd6y3OnvxORSbXIGCsZMc7UH3i1Q=";
+
})
# hardcode paths to some binaries
(replaceVars ./paths.patch {
exiftool = lib.getExe exiftool;