Merge pull request #124255 from DavHau/scikit-learn-fix-hydra

authored by Sandro and committed by GitHub c83536eb ef9a1d4c

+24 -4
+24 -4
pkgs/development/python-modules/scikit-learn/default.nix
··· 66 66 67 67 doCheck = !stdenv.isAarch64; 68 68 69 - # Skip test_feature_importance_regression - does web fetch 70 - disabledTests = [ "test_feature_importance_regression" ]; 69 + disabledTests = [ 70 + # Skip test_feature_importance_regression - does web fetch 71 + "test_feature_importance_regression" 71 72 72 - pytestFlagsArray = [ "-n" "$NIX_BUILD_CORES" "--pyargs" "sklearn" ]; 73 + # failing on macos 74 + "check_regressors_train" 75 + "check_classifiers_train" 76 + "xfail_ignored_in_check_estimator" 77 + ]; 78 + 79 + pytestFlagsArray = [ 80 + # verbose build outputs needed to debug hard-to-reproduce hydra failures 81 + "-v" 82 + "--pyargs" "sklearn" 83 + 84 + # NuSVC memmap tests causes segmentation faults in certain environments 85 + # (e.g. Hydra Darwin machines) related to a long-standing joblib issue 86 + # (https://github.com/joblib/joblib/issues/563). See also: 87 + # https://github.com/scikit-learn/scikit-learn/issues/17582 88 + # Since we are overriding '-k' we need to include the 'disabledTests' from above manually. 89 + "-k" "'not (NuSVC and memmap) ${toString (lib.forEach disabledTests (t: "and not ${t}"))}'" 90 + 91 + "-n" "$NIX_BUILD_CORES" 92 + ]; 73 93 74 94 preCheck = '' 75 95 cd $TMPDIR ··· 89 109 "https://scikit-learn.org/stable/whats_new/v${major}.${minor}.html#version-${dashVer}"; 90 110 homepage = "https://scikit-learn.org"; 91 111 license = licenses.bsd3; 92 - maintainers = with maintainers; [ ]; 112 + maintainers = with maintainers; [ davhau ]; 93 113 }; 94 114 }