From 1bf2f73c1b20cdc10bc6648cc5f02a61397719df Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Aug 2025 04:11:28 +0200 Subject: [PATCH] python3Packages.pyopenxl: update disabled tests --- .../python-modules/openpyxl/default.nix | 27 +++---------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/openpyxl/default.nix b/pkgs/development/python-modules/openpyxl/default.nix index e7c62ed57f02..f973232edbfd 100644 --- a/pkgs/development/python-modules/openpyxl/default.nix +++ b/pkgs/development/python-modules/openpyxl/default.nix @@ -6,8 +6,7 @@ lxml, pandas, pillow, - pytest7CheckHook, - pythonAtLeast, + pytestCheckHook, pythonOlder, setuptools, }: @@ -35,7 +34,7 @@ buildPythonPackage rec { lxml pandas pillow - pytest7CheckHook + pytestCheckHook ]; pytestFlags = [ @@ -43,26 +42,8 @@ buildPythonPackage rec { ]; disabledTests = [ - # Tests broken since lxml 2.12; https://foss.heptapod.net/openpyxl/openpyxl/-/issues/2116 - "test_read" - "test_read_comments" - "test_ignore_external_blip" - "test_from_xml" - "test_filenames" - "test_exts" - "test_from_complex" - "test_merge_named_styles" - "test_unprotected_cell" - "test_none_values" - "test_rgb_colors" - "test_named_styles" - "test_read_ole_link" - ] - ++ lib.optionals (pythonAtLeast "3.11") [ - "test_broken_sheet_ref" - "test_name_invalid_index" - "test_defined_names_print_area" - "test_no_styles" + # lxml 6.0 + "test_iterparse" ]; pythonImportsCheck = [ "openpyxl" ];