Skip to content

Commit

Permalink
pythonPackages.scikitlearn: disable doctests
Browse files Browse the repository at this point in the history
fixes #35436

(cherry picked from commit cc30517)
  • Loading branch information
Robert Schütz committed Mar 18, 2018
1 parent e496420 commit ee97df8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/scikitlearn/default.nix
Expand Up @@ -21,8 +21,9 @@ buildPythonPackage rec {
LC_ALL="en_US.UTF-8";

# Disable doctests on OSX: https://github.com/scikit-learn/scikit-learn/issues/10213
# Disable doctests everywhere: https://github.com/NixOS/nixpkgs/issues/35436
checkPhase = ''
HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests ${stdenv.lib.optionalString stdenv.isDarwin "--doctest-options=+SKIP"} $out/${python.sitePackages}/sklearn/
HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests --doctest-options=+SKIP $out/${python.sitePackages}/sklearn/
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit ee97df8

Please sign in to comment.