python311Packages.mat2: disable test_all_parametred test

`test_all_parametred` test is too sensitive.
It frequently fails when exiftool is updated and adds support for new metadata.

Also migrated `unittestCheckHook` to `pytestCheckHook` to be able to disable
the test (not possible easily with unittest). We can do that safely
since pytest also supports unittest test suites.
This commit is contained in:
Anthony Roussel 2023-10-22 22:24:03 +02:00
parent e3318309ab
commit 0f9ecf1da3
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,7 +1,7 @@
{ lib
, stdenv
, buildPythonPackage
, unittestCheckHook
, pytestCheckHook
, pythonOlder
, fetchFromGitLab
, substituteAll
@ -88,9 +88,12 @@ buildPythonPackage rec {
install -Dm 444 dolphin/mat2.desktop -t "$out/share/kservices5/ServiceMenus"
'';
nativeCheckInputs = [ unittestCheckHook ];
nativeCheckInputs = [ pytestCheckHook ];
unittestFlagsArray = [ "-v" ];
disabledTests = [
# Frequently fails when exiftool is updated and adds support for new metadata.
"test_all_parametred"
];
meta = with lib; {
description = "A handy tool to trash your metadata";