From 8ac5876aac95dbe4d04dbcb6ac4296d877e58015 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Tue, 25 May 2021 23:59:21 +0100 Subject: [PATCH] python3Packages.xgboost: fix tests for darwin (cherry picked from commit 4ef1d33c7c9c154c1ba60718e8805150380d9f36) --- pkgs/development/python-modules/xgboost/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xgboost/default.nix b/pkgs/development/python-modules/xgboost/default.nix index 4f02d72c9a1..1045b86a444 100644 --- a/pkgs/development/python-modules/xgboost/default.nix +++ b/pkgs/development/python-modules/xgboost/default.nix @@ -1,4 +1,5 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , pytestCheckHook , cmake , scipy @@ -56,6 +57,11 @@ buildPythonPackage { disabledTests = [ "test_cli_binary_classification" "test_model_compatibility" + ] ++ lib.optionals stdenv.isDarwin [ + # fails to connect to the com.apple.fonts daemon in sandboxed mode + "test_plotting" + "test_sklearn_plotting" ]; + __darwinAllowLocalNetworking = true; }