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

authored by

Ben Darwin and committed by
Franz Pletz
07cfc155 8199cda7

+3 -2
+3 -2
pkgs/development/compilers/cmdstan/default.nix
··· 1 - { stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 name = "cmdstan-2.9.0"; ··· 10 11 buildFlags = "build"; 12 enableParallelBuilding = true; 13 14 doCheck = true; 15 - checkPhase = "./runCmdStanTests.py src/test/interface"; 16 17 installPhase = '' 18 mkdir -p $out/opt $out/bin
··· 1 + { stdenv, fetchurl, python }: 2 3 stdenv.mkDerivation rec { 4 name = "cmdstan-2.9.0"; ··· 10 11 buildFlags = "build"; 12 enableParallelBuilding = true; 13 + nativeBuildInputs = stdenv.lib.optional doCheck python; 14 15 doCheck = true; 16 + checkPhase = "python ./runCmdStanTests.py src/test/interface"; # see #5368 17 18 installPhase = '' 19 mkdir -p $out/opt $out/bin