From 3256d9da561c88dc191a54b7fdf673964f9d7876 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 10 May 2026 21:00:33 +0700 Subject: [PATCH] python3Packages.mahotas: skip refcount tests on python 3.14 --- pkgs/development/python-modules/mahotas/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/mahotas/default.nix b/pkgs/development/python-modules/mahotas/default.nix index 9d0aa801707e..033e06da1f7a 100644 --- a/pkgs/development/python-modules/mahotas/default.nix +++ b/pkgs/development/python-modules/mahotas/default.nix @@ -2,6 +2,7 @@ buildPythonPackage, fetchFromGitHub, pillow, + pythonAtLeast, scipy, numpy, pytestCheckHook, @@ -45,6 +46,11 @@ buildPythonPackage rec { "test_ellipse_axes" "test_normalize" "test_haralick3d" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # sys.getrefcount semantics changed in 3.14 + "test_close_holes_simple" + "test_watershed" ]; pythonImportsCheck = [ "mahotas" ];