about summary refs log tree commit diff
path: root/pkgs/development/python-modules/imbalanced-learn
diff options
context:
space:
mode:
authorRobert T. McGibbon <rmcgibbo@gmail.com>2020-12-29 15:48:51 -0500
committerRobert T. McGibbon <rmcgibbo@gmail.com>2020-12-30 17:57:48 -0500
commit23e230b8ebb08e901b4a6fcaf02231aaddd2e8d0 (patch)
tree6409f2ad795fedb571a0a285325b6dd803817b34 /pkgs/development/python-modules/imbalanced-learn
parent7b90b3737fab03bb7aef59a61739b064b407d070 (diff)
python3Packages.imbalanced-learn: unbreak build
Diffstat (limited to 'pkgs/development/python-modules/imbalanced-learn')
-rw-r--r--pkgs/development/python-modules/imbalanced-learn/default.nix20
1 files 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 1cb3dc2a7b9e6..21018518ca289 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";