Skip to content

Commit

Permalink
Merge pull request #38245 from xeji/p/imbalanced-learn
Browse files Browse the repository at this point in the history
pythonPackages.imbalanced-learn: 0.3.2 -> 0.3.3, fix build
  • Loading branch information
dotlambda authored Apr 1, 2018
2 parents 7b36145 + 6b2bc4b commit dd7900a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/imbalanced-learn/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }:

buildPythonPackage rec {
pname = "imbalanced-learn";
version = "0.3.3";

src = fetchPypi {
inherit pname version;
sha256 = "1r5js9kw6rvmfvxxkfjlcxv5xn5h19qvg7d41byilxwq9kd515g4";
};

propagatedBuildInputs = [ scikitlearn ];
checkInputs = [ nose pytest pandas ];
checkPhase = ''
export HOME=$PWD
# skip some tests that fail because of minimal rounding errors
py.test imblearn --ignore=imblearn/metrics/classification.py
py.test doc/*.rst
'';

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;
};
}
24 changes: 1 addition & 23 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4872,29 +4872,7 @@ in {

};

imbalanced-learn = buildPythonPackage rec {
name = "imbalanced-learn-${version}";
version = "0.3.2";

src = pkgs.fetchurl {
url = "mirror://pypi/i/imbalanced-learn/${name}.tar.gz";
sha256 = "0j76m0rrsvyqj9bimky9m7b609y5v6crf9apigww3xvcnchhj901";
};

preConfigure = ''
export HOME=$PWD
'';

propagatedBuildInputs = with self; [ scikitlearn ];
buildInputs = with self; [ nose pytest pandas ];

meta = {
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 = with licenses; [ mit ];
};

};
imbalanced-learn = callPackage ../development/python-modules/imbalanced-learn { };

imread = buildPythonPackage rec {
name = "python-imread-${version}";
Expand Down

0 comments on commit dd7900a

Please sign in to comment.