From ebd5579dbf3b3ace97e97e020726c128083e2e71 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 10 Aug 2024 12:27:33 +0200 Subject: [PATCH] python312Packages.jaxopt: skip failing tests on darwin --- pkgs/development/python-modules/jaxopt/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jaxopt/default.nix b/pkgs/development/python-modules/jaxopt/default.nix index 83a847b5a2f4..8159533fc203 100644 --- a/pkgs/development/python-modules/jaxopt/default.nix +++ b/pkgs/development/python-modules/jaxopt/default.nix @@ -86,13 +86,21 @@ buildPythonPackage rec { "test_dtype_consistency" # AssertionError: Array(0.01411963, dtype=float32) not less than or equal to 0.01 "test_multiclass_logreg6" + ] + ++ lib.optionals stdenv.isDarwin [ + # Fatal Python error: Aborted + "test_dtype_consistency" + + # AssertionError (flaky numerical tests) + "test_logreg_with_intercept_manual_loop3" + "test_binary_logit_log_likelihood" ]; - meta = with lib; { + meta = { homepage = "https://jaxopt.github.io"; description = "Hardware accelerated, batchable and differentiable optimizers in JAX"; changelog = "https://github.com/google/jaxopt/releases/tag/jaxopt-v${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ bcdarwin ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bcdarwin ]; }; }