python3Packages.imbalanced-learn: unbreak build
This commit is contained in:
parent
7b90b3737f
commit
23e230b8eb
@ -1,7 +1,6 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
||||||
, nose
|
|
||||||
, pandas
|
, pandas
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, scikitlearn
|
, scikitlearn
|
||||||
, tensorflow
|
, tensorflow
|
||||||
}:
|
}:
|
||||||
@ -17,16 +16,17 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ scikitlearn ];
|
propagatedBuildInputs = [ scikitlearn ];
|
||||||
checkInputs = [ nose pytest pandas ];
|
checkInputs = [ pytestCheckHook pandas ];
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
# skip some tests that fail because of minimal rounding errors
|
|
||||||
# or very large dependencies (keras + tensorflow)
|
|
||||||
py.test imblearn -k 'not estimator \
|
|
||||||
and not classification \
|
|
||||||
and not _generator \
|
|
||||||
and not show_versions'
|
|
||||||
'';
|
'';
|
||||||
|
disabledTests = [
|
||||||
|
"estimator"
|
||||||
|
"classification"
|
||||||
|
"_generator"
|
||||||
|
"show_versions"
|
||||||
|
"test_make_imbalanced_iris"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";
|
description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user