pythonPackages.reportlab: remove test files that require network for the tests to pass (#44244)
closes #44204
This commit is contained in:
parent
034c9816d5
commit
138d3be11a
@ -23,12 +23,17 @@ in buildPythonPackage rec {
|
|||||||
buildInputs = [ ft pillow ];
|
buildInputs = [ ft pillow ];
|
||||||
|
|
||||||
postPatch = ''
|
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
|
rm tests/test_graphics_render.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
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
|
# 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";
|
description = "An Open Source Python library for generating PDFs and graphics";
|
||||||
homepage = http://www.reportlab.com/;
|
homepage = http://www.reportlab.com/;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user