diff --git a/pkgs/development/python-modules/jinja2/default.nix b/pkgs/development/python-modules/jinja2/default.nix index cc08d2cf3757..90dfc6fa7daf 100644 --- a/pkgs/development/python-modules/jinja2/default.nix +++ b/pkgs/development/python-modules/jinja2/default.nix @@ -1,5 +1,9 @@ -{ stdenv, buildPythonPackage, fetchPypi -, pytest, markupsafe }: +{ stdenv +, buildPythonPackage +, isPy3k +, fetchPypi +, pytest +, markupsafe }: buildPythonPackage rec { pname = "Jinja2"; @@ -13,6 +17,10 @@ buildPythonPackage rec { checkInputs = [ pytest ]; propagatedBuildInputs = [ markupsafe ]; + # Multiple tests run out of stack space on 32bit systems with python2. + # See https://github.com/pallets/jinja/issues/1158 + doCheck = !stdenv.is32bit || isPy3k; + checkPhase = '' pytest -v tests '';