pythonPackages.reportlab: remove test files that require network for the tests to pass (#44244)

closes #44204
This commit is contained in:
Wael Nasreddine 2018-07-30 15:14:41 -07:00 committed by Robert Schütz
parent 034c9816d5
commit 138d3be11a

View File

@ -23,12 +23,17 @@ in buildPythonPackage rec {
buildInputs = [ ft pillow ];
postPatch = ''
rm tests/test_graphics_barcode.py
# Remove all the test files that require access to the internet to pass.
rm tests/test_lib_utils.py
rm tests/test_platypus_general.py
# Remove the tests that require Vera fonts installed
rm tests/test_graphics_render.py
'';
checkPhase = ''
LC_ALL="en_US.UTF-8" ${python.interpreter} tests/runAll.py
cd tests
LC_ALL="en_US.UTF-8" ${python.interpreter} runAll.py
'';
# See https://bitbucket.org/pypy/compatibility/wiki/reportlab%20toolkit
@ -38,4 +43,4 @@ in buildPythonPackage rec {
description = "An Open Source Python library for generating PDFs and graphics";
homepage = http://www.reportlab.com/;
};
}
}