Merge pull request #68821 from d-goldin/fix_build_scikitlearn

python37Packages.scikitlearn: patching build
This commit is contained in:
Mario Rodas 2019-09-15 17:41:09 -05:00 committed by GitHub
commit 8624303abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
, lib , lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, gfortran, glibcLocales , gfortran, glibcLocales
, numpy, scipy, pytest, pillow , numpy, scipy, pytest, pillow
, cython , cython
@ -40,6 +41,15 @@ buildPythonPackage rec {
]; ];
checkInputs = [ pytest ]; checkInputs = [ pytest ];
patches = [
# Fixes tests by changing threshold of a test-case that broke
# with numpy versions >= 1.17. This should be removed for versions > 0.21.2.
( fetchpatch {
url = "https://github.com/scikit-learn/scikit-learn/commit/b730befc821caec5b984d9ff3aa7bc4bd7f4d9bb.patch";
sha256 = "0z36m05mv6d494qwq0688rgwa7c4bbnm5s2rcjlrp29fwn3fy1bv";
})
];
LC_ALL="en_US.UTF-8"; LC_ALL="en_US.UTF-8";
doCheck = !stdenv.isAarch64; doCheck = !stdenv.isAarch64;