1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #80888 from rnhmjoj/jinja2

python2Packages.jinja2: disable tests on 32bit systems
This commit is contained in:
Michele Guerini Rocco 2020-02-25 01:31:04 +01:00 committed by GitHub
commit 1805cfabff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';