mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 05:18:37 +00:00
python3Packages.imbalanced-learn: 0.4.3 -> 0.5.0
This commit is contained in:
parent
35b622f0da
commit
f744758a74
@ -1,25 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
||||
, nose
|
||||
, pandas
|
||||
, pytest
|
||||
, scikitlearn
|
||||
, tensorflow
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "imbalanced-learn";
|
||||
version = "0.4.3";
|
||||
version = "0.5.0";
|
||||
disabled = isPy27; # scikit-learn>=0.21 doesn't work on python2
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5bd9e86e40ce4001a57426541d7c79b18143cbd181e3330c1a3e5c5c43287083";
|
||||
sha256 = "1m8r055mvkws0s449s1dyrkgricls6basnszwbwqwrw6g19n1xsx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ scikitlearn ];
|
||||
checkInputs = [ nose pytest pandas ];
|
||||
checkPhase = ''
|
||||
export HOME=$PWD
|
||||
export HOME=$TMPDIR
|
||||
# skip some tests that fail because of minimal rounding errors
|
||||
# or large dependencies
|
||||
py.test imblearn -k 'not classification \
|
||||
and not _generator \
|
||||
and not _forest \
|
||||
and not wrong_memory'
|
||||
py.test doc/*.rst
|
||||
# or very large dependencies (keras + tensorflow)
|
||||
py.test imblearn -k 'not estimator \
|
||||
and not classification \
|
||||
and not _generator'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user