python3Packages.scikit-learn: upstream patch for tests

Originally I wanted to update to 1.4.2, but that complained:
 > ERROR Missing dependencies:
 >        numpy==2.0.0rc1
This commit is contained in:
Vladimír Čunát 2024-04-17 07:53:23 +02:00
parent feedc73bee
commit d65dbfbcba
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
1 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,7 @@
, lib
, buildPythonPackage
, fetchPypi
, fetchpatch
# build-system
, cython
@ -34,6 +35,14 @@ buildPythonPackage rec {
hash = "sha256-k9PUlv8ZZUcPmXfQXl7DN2+x5jsQ5P2l450jwtiWmjA=";
};
patches = [
(fetchpatch { # included in >= 1.4.2
name = "test_standard_scaler_dtype.patch";
url = "https://github.com/jeremiedbb/scikit-learn/commit/87c32d35eeb8f6f7fec63dc3d97d9c416545f053.diff";
hash = "sha256-iOBOoWHuWChCTnZ5go7MobPcHRGMChROpCI7V/5ik1Y=";
})
];
buildInputs = [
pillow
glibcLocales