18 buildPythonPackage rec {
19 pname = "imbalanced-learn";
23 disabled = pythonOlder "3.8";
26 inherit pname version;
27 hash = "sha256-gVO6OF0pawfZfgkBomJKhsBrSMlML5LaOlNUgnaXt6M=";
30 nativeBuildInputs = [ setuptools ];
32 propagatedBuildInputs = [
40 optional-dependencies = {
48 pythonImportsCheck = [ "imblearn" ];
60 # require tensorflow and keras, but we don't want to
61 # add them to nativeCheckInputs just for this tests
62 "imblearn/keras/_generator.py"
66 description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";
67 homepage = "https://github.com/scikit-learn-contrib/imbalanced-learn";
68 changelog = "https://github.com/scikit-learn-contrib/imbalanced-learn/releases/tag/${version}";
69 license = licenses.mit;
70 maintainers = [ maintainers.rmcgibbo ];