From 9f7e393bc262505ede3938c5d0c7f52f44184035 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 10 Jan 2026 00:00:30 +0000 Subject: [PATCH] python3Packages.cleanlab: unmark as broken --- .../python-modules/cleanlab/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/cleanlab/default.nix b/pkgs/development/python-modules/cleanlab/default.nix index b1c392e3e037..e263c99526e4 100644 --- a/pkgs/development/python-modules/cleanlab/default.nix +++ b/pkgs/development/python-modules/cleanlab/default.nix @@ -5,7 +5,6 @@ # build-system setuptools, - setuptools-scm, # dependencies numpy, @@ -43,9 +42,13 @@ buildPythonPackage (finalAttrs: { hash = "sha256-sgDQJy0iNxs3bIVuqV7LVEFC0jjlWvnqFzKr7ZDGmPo="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "setuptools>=65.0,<70.0" "setuptools" + ''; + build-system = [ setuptools - setuptools-scm ]; dependencies = [ @@ -79,6 +82,9 @@ buildPythonPackage (finalAttrs: { # Requires the datasets we prevent from downloading "test_create_imagelab" + # AssertionError: assert np.int64(36) == 35 + "test_num_label_issues" + # Non-trivial numpy2 incompatibilities # assert np.float64(0.492) == 0.491 "test_duplicate_points_have_similar_scores" @@ -107,9 +113,5 @@ buildPythonPackage (finalAttrs: { changelog = "https://github.com/cleanlab/cleanlab/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ happysalada ]; - # cleanlab is incompatible with datasets>=4.0.0 - # cleanlab/datalab/internal/data.py:313: AssertionError - # https://github.com/cleanlab/cleanlab/issues/1244 - broken = lib.versionAtLeast datasets.version "4.0.0"; }; })