From e264d4f4ac03dd7c1ed0e17c5279277199b3a9cf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 17 Mar 2024 14:45:12 +0100 Subject: [PATCH] python311Packages.scikit-learn: stop testing on darwin On darwin the test session fails immediately, because it resolves some symlink to /nix/nix-installer, tries to stat that, and fails with PermissionError. The traceback is unfortunately completely outside of the projects code path, so kinda hard to debug. --- .../python-modules/scikit-learn/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/scikit-learn/default.nix b/pkgs/development/python-modules/scikit-learn/default.nix index b789c748c8ee..b6c703d7870d 100644 --- a/pkgs/development/python-modules/scikit-learn/default.nix +++ b/pkgs/development/python-modules/scikit-learn/default.nix @@ -75,18 +75,12 @@ buildPythonPackage rec { export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES ''; - doCheck = !stdenv.isAarch64; + # PermissionError: [Errno 1] Operation not permitted: '/nix/nix-installer' + doCheck = !stdenv.isDarwin; disabledTests = [ # Skip test_feature_importance_regression - does web fetch "test_feature_importance_regression" - - # failing on macos - "check_regressors_train" - "check_classifiers_train" - "xfail_ignored_in_check_estimator" - ] ++ lib.optionals (stdenv.isDarwin) [ - "test_graphical_lasso" ]; pytestFlagsArray = [