From 46e51883d89818744500ddc3f800990ce3c1a0c6 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 30 Aug 2015 09:55:29 +0200 Subject: [PATCH] scikit-learn: fix i686 build failures Currently i686 builds fail because a couple of doctests fail. The values are correct, but the dtype is missing. This commit disables doctests. --- pkgs/top-level/python-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 42db423a451a..de04d810930c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12460,6 +12460,13 @@ let buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ]; propagatedBuildInputs = with self; [ numpy scipy pkgs.openblas ]; + # doctests fail on i686 + # https://github.com/NixOS/nixpkgs/issues/9472 + # https://github.com/scikit-learn/scikit-learn/issues/5177 + patchPhase = '' + substituteInPlace setup.cfg --replace 'with-doctest = 1' 'with-doctest = 0' + ''; + buildPhase = '' ${self.python.executable} setup.py build_ext -i --fcompiler='gnu95' '';