From b4f3b3e04dcbe66fbd52b916bdd13c3fc587d16c Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 10 May 2026 20:54:40 +0700 Subject: [PATCH] python3Packages.mat2: fix tests under python 3.14 --- pkgs/development/python-modules/mat2/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/mat2/default.nix b/pkgs/development/python-modules/mat2/default.nix index 60db42babc15..05f2071a201e 100644 --- a/pkgs/development/python-modules/mat2/default.nix +++ b/pkgs/development/python-modules/mat2/default.nix @@ -5,6 +5,7 @@ pytestCheckHook, fetchFromGitHub, fetchpatch, + fetchpatch2, replaceVars, exiftool, ffmpeg, @@ -55,6 +56,16 @@ buildPythonPackage rec { url = "https://github.com/jvoisin/mat2/commit/00b4f110711754496932c59d5af3c0b2ed694484.patch"; hash = "sha256-5h/nM1dK8HmYtoIBVGOvUegMFBpGxcfpn5O6QrjLi9M="; }) + # Loosen test_climat2 assertions split across terminal-width boundaries. + (fetchpatch2 { + url = "https://github.com/jvoisin/mat2/commit/690e01d475117a4e0c85f26154b26ef332f036be.patch?full_index=1"; + hash = "sha256-pDbY3E6BPp20orDOx7zxhCdAB+nAdpddTYjPYHStVLc="; + }) + # Fix test_climat2 under Python 3.14+ argparse usage formatting. + (fetchpatch2 { + url = "https://github.com/jvoisin/mat2/commit/05f34a17695be65b1ad9782911f87e000de8fc8b.patch?full_index=1"; + hash = "sha256-rIaXocT+LKM2De5iBPIPoBdFbdd17TJJPyFrPzNAJF0="; + }) ]; postPatch = ''