git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #80888 from rnhmjoj/jinja2

python2Packages.jinja2: disable tests on 32bit systems

commit1805cfabff1320cfb543ba803049a6be5850955f authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com> dateTue 25 Feb 2020, 01:31 (7 years ago) parent403280a655b9c3
1 file changed+10−2
pkgs/development/python-modules/jinja2/default.nix+10−2
pkgs/development/python-modules/jinja2/default.nix+10−2
@@ -1,5 +1,9 @@
1−{ stdenv, buildPythonPackage, fetchPypi
2−, pytest, markupsafe }:
1+{ stdenv
2+, buildPythonPackage
3+, isPy3k
4+, fetchPypi
5+, pytest
6+, markupsafe }:
37
48buildPythonPackage rec {
59 pname = "Jinja2";
@@ -13,6 +17,10 @@ buildPythonPackage rec {
1317 checkInputs = [ pytest ];
1418 propagatedBuildInputs = [ markupsafe ];
1519
20+ # Multiple tests run out of stack space on 32bit systems with python2.
21+ # See https://github.com/pallets/jinja/issues/1158
22+ doCheck = !stdenv.is32bit || isPy3k;
23+
1624 checkPhase = ''
1725 pytest -v tests
1826 '';