mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python37Packages.scikitlearn: patching build
For numpy>=1.17 a test-case broke that required adjustments to a threshold. See https://github.com/NixOS/nixpkgs/issues/68494
This commit is contained in:
parent
1e1ca087a0
commit
82d7833b9b
@ -2,6 +2,7 @@
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, gfortran, glibcLocales
|
||||
, numpy, scipy, pytest, pillow
|
||||
, cython
|
||||
@ -40,6 +41,15 @@ buildPythonPackage rec {
|
||||
];
|
||||
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";
|
||||
|
||||
doCheck = !stdenv.isAarch64;
|
||||
|
Loading…
Reference in New Issue
Block a user