python2Packages.imbalanced-learn: freeze at 0.4.3
This commit is contained in:
parent
02ecb596a3
commit
35b622f0da
29
pkgs/development/python-modules/imbalanced-learn/0.4.nix
Normal file
29
pkgs/development/python-modules/imbalanced-learn/0.4.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "imbalanced-learn";
|
||||
version = "0.4.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5bd9e86e40ce4001a57426541d7c79b18143cbd181e3330c1a3e5c5c43287083";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ scikitlearn ];
|
||||
checkInputs = [ nose pytest pandas ];
|
||||
checkPhase = ''
|
||||
export HOME=$PWD
|
||||
# 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'
|
||||
'';
|
||||
|
||||
meta = with stdenv.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;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -2353,7 +2353,11 @@ in {
|
||||
|
||||
image-match = callPackage ../development/python-modules/image-match { };
|
||||
|
||||
imbalanced-learn = callPackage ../development/python-modules/imbalanced-learn { };
|
||||
imbalanced-learn =
|
||||
if isPy27 then
|
||||
callPackage ../development/python-modules/imbalanced-learn/0.4.nix { }
|
||||
else
|
||||
callPackage ../development/python-modules/imbalanced-learn { };
|
||||
|
||||
immutables = callPackage ../development/python-modules/immutables {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user