From 0f9ecf1da34ecaa078f674532a30b714808c6383 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 22 Oct 2023 22:24:03 +0200 Subject: [PATCH] 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. --- pkgs/development/python-modules/mat2/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/mat2/default.nix b/pkgs/development/python-modules/mat2/default.nix index 97b9090cc250..1646d3ac7246 100644 --- a/pkgs/development/python-modules/mat2/default.nix +++ b/pkgs/development/python-modules/mat2/default.nix @@ -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";