From 23e230b8ebb08e901b4a6fcaf02231aaddd2e8d0 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Tue, 29 Dec 2020 15:48:51 -0500 Subject: [PATCH] python3Packages.imbalanced-learn: unbreak build --- .../imbalanced-learn/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/imbalanced-learn/default.nix b/pkgs/development/python-modules/imbalanced-learn/default.nix index 1cb3dc2a7b9..21018518ca2 100644 --- a/pkgs/development/python-modules/imbalanced-learn/default.nix +++ b/pkgs/development/python-modules/imbalanced-learn/default.nix @@ -1,7 +1,6 @@ { stdenv, buildPythonPackage, fetchPypi, isPy27 -, nose , pandas -, pytest +, pytestCheckHook , scikitlearn , tensorflow }: @@ -17,16 +16,17 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ scikitlearn ]; - checkInputs = [ nose pytest pandas ]; - checkPhase = '' + checkInputs = [ pytestCheckHook pandas ]; + preCheck = '' export HOME=$TMPDIR - # skip some tests that fail because of minimal rounding errors - # or very large dependencies (keras + tensorflow) - py.test imblearn -k 'not estimator \ - and not classification \ - and not _generator \ - and not show_versions' ''; + disabledTests = [ + "estimator" + "classification" + "_generator" + "show_versions" + "test_make_imbalanced_iris" + ]; meta = with stdenv.lib; { description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";