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

Changed files
+3 -2
pkgs
development
compilers
cmdstan
+3 -2
pkgs/development/compilers/cmdstan/default.nix
···
-
{ stdenv, fetchurl }:
+
{ stdenv, fetchurl, python }:
stdenv.mkDerivation rec {
name = "cmdstan-2.9.0";
···
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