From 0cba26e6364b519f2e3a6adde9d73b08ff965e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Jan 2025 01:37:36 -0800 Subject: [PATCH 1/2] python312Packages.wandb: skip failing tests --- pkgs/development/python-modules/wandb/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index 0872f5283e6f..e5968f51168b 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -296,6 +296,11 @@ buildPythonPackage rec { # Error in the moviepy package: # TypeError: must be real number, not NoneType "test_video_numpy_mp4" + + # AssertionError: assert not _IS_INTERNAL_PROCESS + "test_disabled_can_pickle" + "test_disabled_context_manager" + "test_mode_disabled" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ # AssertionError: assert not copy2_mock.called From 80b772f24775babde12243e1afef3501d7e20045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Jan 2025 01:38:11 -0800 Subject: [PATCH 2/2] python312Packages.spacy: unpin numpy --- pkgs/development/python-modules/spacy/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index 990d8996d1b6..cbd02ae018a7 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -49,7 +49,9 @@ buildPythonPackage rec { }; postPatch = '' - sed -i "/numpy/d" pyproject.toml + # unpin numpy, cannot use pythonRelaxDeps because it's in build-system + substituteInPlace pyproject.toml setup.cfg \ + --replace-fail ",<2.1.0" "" ''; build-system = [