summary refs log tree commit diff
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-09-19 16:15:02 +0200
committerGitHub <noreply@github.com>2018-09-19 16:15:02 +0200
commit970393c34a14e32d10d747eb08e4ebbecba9b390 (patch)
tree22c2a87b2fe9258544fd572fe0f8be9dc5ea1083
parentcffad7fb631568ecb1e380ceb2bd44daa2755d28 (diff)
downloadnixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.tar
nixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.tar.gz
nixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.tar.bz2
nixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.tar.lz
nixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.tar.xz
nixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.tar.zst
nixpkgs-970393c34a14e32d10d747eb08e4ebbecba9b390.zip
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.
-rw-r--r--pkgs/development/python-modules/nilearn/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nilearn/default.nix b/pkgs/development/python-modules/nilearn/default.nix
index bf8ae217705..14bb15184b5 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