python3Packages.scikitlearn: patch for numpy 1.20.0
This commit is contained in:
parent
bec66f6b74
commit
69a8b546b6
@ -3,25 +3,38 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, gfortran, glibcLocales
|
, gfortran
|
||||||
, numpy, scipy, pytest, pillow
|
, glibcLocales
|
||||||
|
, numpy
|
||||||
|
, scipy
|
||||||
|
, pytest
|
||||||
|
, pillow
|
||||||
, cython
|
, cython
|
||||||
, joblib
|
, joblib
|
||||||
, llvmPackages
|
, llvmPackages
|
||||||
, threadpoolctl
|
, threadpoolctl
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "scikit-learn";
|
pname = "scikit-learn";
|
||||||
version = "0.24.1";
|
version = "0.24.1";
|
||||||
# UnboundLocalError: local variable 'message' referenced before assignment
|
disabled = pythonOlder "3.6";
|
||||||
disabled = stdenv.isi686; # https://github.com/scikit-learn/scikit-learn/issues/5534
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "oDNKGALmTWVgIsO/q1anP71r9LEpg0PzaIryFRgQu98=";
|
sha256 = "oDNKGALmTWVgIsO/q1anP71r9LEpg0PzaIryFRgQu98=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# This patch fixes compatibility with numpy 1.20. It was merged before 0.24.1 was released,
|
||||||
|
# but for some reason was not included in the 0.24.1 release tarball.
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/scikit-learn/scikit-learn/commit/e7ef22c3ba2334cb3b476e95d7c083cf6b48ce56.patch";
|
||||||
|
sha256 = "174554k1pbf92bj7wgq0xjj16bkib32ailyhwavdxaknh4bd9nmv";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pillow
|
pillow
|
||||||
gfortran
|
gfortran
|
||||||
|
Loading…
x
Reference in New Issue
Block a user