From 4ec8edaa6af5ebfd6db4717f920592a9768a2575 Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Wed, 24 Jul 2019 10:50:00 -0700 Subject: [PATCH] pythonPackages.joblib: fix the build on Darwin (#65288) The test test_dispatch_multiprocessing is failing on Darwin; Disabling it fixes the build. --- pkgs/development/python-modules/joblib/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/joblib/default.nix b/pkgs/development/python-modules/joblib/default.nix index 9b2a5c44732..c16c7687c8a 100644 --- a/pkgs/development/python-modules/joblib/default.nix +++ b/pkgs/development/python-modules/joblib/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , fetchpatch +, stdenv , sphinx , numpydoc , pytest @@ -38,10 +39,10 @@ buildPythonPackage rec { checkInputs = [ sphinx numpydoc pytest ]; propagatedBuildInputs = [ python-lz4 ]; - # test_disk_used is broken - # https://github.com/joblib/joblib/issues/57 + # test_disk_used is broken: https://github.com/joblib/joblib/issues/57 + # test_dispatch_multiprocessing is broken only on Darwin. checkPhase = '' - py.test joblib -k "not test_disk_used" + py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test ''; meta = {