From 970393c34a14e32d10d747eb08e4ebbecba9b390 Mon Sep 17 00:00:00 2001 From: xeji <36407913+xeji@users.noreply.github.com> Date: Wed, 19 Sep 2018 16:15:02 +0200 Subject: [PATCH] pythonPackages.nilearn: fix test_signal tests (#46850) These tests failed on some machines, probably due to lower arithmetic presicion. Reduce required precision from 13 to 8 decimal digits. --- pkgs/development/python-modules/nilearn/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/nilearn/default.nix b/pkgs/development/python-modules/nilearn/default.nix index bf8ae217705c..14bb15184b59 100644 --- a/pkgs/development/python-modules/nilearn/default.nix +++ b/pkgs/development/python-modules/nilearn/default.nix @@ -19,6 +19,13 @@ buildPythonPackage rec { checkInputs = [ nose ]; + # These tests fail on some builder machines, probably due to lower + # arithmetic precision. Reduce required precision from 13 to 8 decimals. + postPatch = '' + substituteInPlace nilearn/tests/test_signal.py \ + --replace 'decimal=13' 'decimal=8' + ''; + propagatedBuildInputs = [ matplotlib nibabel