From f744758a74161b2a5ade4f27af6d839e91609d21 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 29 Jul 2019 17:04:49 -0700 Subject: [PATCH] python3Packages.imbalanced-learn: 0.4.3 -> 0.5.0 --- .../imbalanced-learn/default.nix | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/imbalanced-learn/default.nix b/pkgs/development/python-modules/imbalanced-learn/default.nix index 9d1064b6c75..6de97aff7d3 100644 --- a/pkgs/development/python-modules/imbalanced-learn/default.nix +++ b/pkgs/development/python-modules/imbalanced-learn/default.nix @@ -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; {