stan: fix build by not running tests with nonexistent /usr/bin/python (#15968)

This commit is contained in:
Ben Darwin 2016-06-26 16:52:58 -04:00 committed by Franz Pletz
parent 8199cda762
commit 07cfc1553f

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, python }:
stdenv.mkDerivation rec {
name = "cmdstan-2.9.0";
@ -10,9 +10,10 @@ stdenv.mkDerivation rec {
buildFlags = "build";
enableParallelBuilding = true;
nativeBuildInputs = stdenv.lib.optional doCheck python;
doCheck = true;
checkPhase = "./runCmdStanTests.py src/test/interface";
checkPhase = "python ./runCmdStanTests.py src/test/interface"; # see #5368
installPhase = ''
mkdir -p $out/opt $out/bin