1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/development/python-modules/imbalanced-learn/default.nix
xeji 6b2bc4b5d1 pythonPackages.imbalanced-learn: 0.3.2 -> 0.3.3, fix build
minor bump, fix tests, move to development/python-modules
2018-04-01 01:58:22 +02:00

27 lines
835 B
Nix

{ 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;
};
}