about summary refs log tree commit diff
path: root/pkgs/development/python-modules/jaxopt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/jaxopt/default.nix')
-rw-r--r--pkgs/development/python-modules/jaxopt/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/jaxopt/default.nix b/pkgs/development/python-modules/jaxopt/default.nix
index 8159533fc203..b617e21c1c27 100644
--- a/pkgs/development/python-modules/jaxopt/default.nix
+++ b/pkgs/development/python-modules/jaxopt/default.nix
@@ -75,7 +75,7 @@ buildPythonPackage rec {
       # https://github.com/google/jaxopt/issues/592
       "test_solve_sparse"
     ]
-    ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [
+    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
       # https://github.com/google/jaxopt/issues/577
       "test_binary_logit_log_likelihood"
       "test_solve_sparse"
@@ -87,7 +87,7 @@ buildPythonPackage rec {
       # AssertionError: Array(0.01411963, dtype=float32) not less than or equal to 0.01
       "test_multiclass_logreg6"
     ]
-    ++ lib.optionals stdenv.isDarwin [
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [
       # Fatal Python error: Aborted
       "test_dtype_consistency"