Merge pull request #283652 from r-ryantm/auto-update/python311Packages.imbalanced-learn

python311Packages.imbalanced-learn: 0.11.0 -> 0.12.0
This commit is contained in:
Weijia Wang 2024-02-04 21:26:49 +01:00 committed by GitHub
commit 3898135a9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,43 +1,72 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pythonOlder
, setuptools
, joblib
, keras
, numpy
, pandas
, pytestCheckHook
, scikit-learn
, scipy
, tensorflow
, threadpoolctl
, pytest-xdist
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "imbalanced-learn";
version = "0.11.0";
format = "setuptools";
disabled = isPy27; # scikit-learn>=0.21 doesn't work on python2
version = "0.12.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-dYKuiFjm2wuS/vl90IZgoYKX7hKNeMKr3ABri9hrj9w=";
hash = "sha256-uczZqqMChpkHnUOm1Nn8nQOfVTdnM7Mfh8fZsSXcwWU=";
};
propagatedBuildInputs = [ scikit-learn ];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
joblib
numpy
scikit-learn
scipy
threadpoolctl
];
passthru.optional-dependencies = {
optional = [
keras
pandas
tensorflow
];
};
pythonImportsCheck = [
"imblearn"
];
nativeCheckInputs = [ pytestCheckHook pandas ];
preCheck = ''
export HOME=$TMPDIR
'';
disabledTests = [
"estimator"
"classification"
"_generator"
"show_versions"
"test_make_imbalanced_iris"
"test_rusboost[SAMME.R]"
# https://github.com/scikit-learn-contrib/imbalanced-learn/issues/824
"ValueDifferenceMetric"
disabledTestPaths = [
# require tensorflow and keras, but we don't want to
# add them to nativeCheckInputs just for this tests
"imblearn/keras/_generator.py"
];
meta = with lib; {
description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";
homepage = "https://github.com/scikit-learn-contrib/imbalanced-learn";
changelog = "https://github.com/scikit-learn-contrib/imbalanced-learn/releases/tag/${version}";
license = licenses.mit;
maintainers = [ maintainers.rmcgibbo ];
};