python3Packages.imbalanced-learn: 0.4.3 -> 0.5.0

This commit is contained in:
Jonathan Ringer 2019-07-29 17:04:49 -07:00 committed by Frederik Rietdijk
parent 35b622f0da
commit f744758a74

View File

@ -1,25 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }: { stdenv, buildPythonPackage, fetchPypi, isPy27
, nose
, pandas
, pytest
, scikitlearn
, tensorflow
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "imbalanced-learn"; pname = "imbalanced-learn";
version = "0.4.3"; version = "0.5.0";
disabled = isPy27; # scikit-learn>=0.21 doesn't work on python2
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "5bd9e86e40ce4001a57426541d7c79b18143cbd181e3330c1a3e5c5c43287083"; sha256 = "1m8r055mvkws0s449s1dyrkgricls6basnszwbwqwrw6g19n1xsx";
}; };
propagatedBuildInputs = [ scikitlearn ]; propagatedBuildInputs = [ scikitlearn ];
checkInputs = [ nose pytest pandas ]; checkInputs = [ nose pytest pandas ];
checkPhase = '' checkPhase = ''
export HOME=$PWD export HOME=$TMPDIR
# skip some tests that fail because of minimal rounding errors # skip some tests that fail because of minimal rounding errors
# or large dependencies # or very large dependencies (keras + tensorflow)
py.test imblearn -k 'not classification \ py.test imblearn -k 'not estimator \
and not _generator \ and not classification \
and not _forest \ and not _generator'
and not wrong_memory'
py.test doc/*.rst
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {