From 138d3be11aac7abe23501ac74c77357e0b59efa1 Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Mon, 30 Jul 2018 15:14:41 -0700 Subject: [PATCH] pythonPackages.reportlab: remove test files that require network for the tests to pass (#44244) closes #44204 --- pkgs/development/python-modules/reportlab/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/reportlab/default.nix b/pkgs/development/python-modules/reportlab/default.nix index 6ede1b8937b..298c3c79e38 100644 --- a/pkgs/development/python-modules/reportlab/default.nix +++ b/pkgs/development/python-modules/reportlab/default.nix @@ -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/; }; -} \ No newline at end of file +}