about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorWael Nasreddine <wael.nasreddine@gmail.com>2018-07-30 15:14:41 -0700
committerRobert Schütz <rschuetz17@gmail.com>2018-07-31 00:14:41 +0200
commit138d3be11aac7abe23501ac74c77357e0b59efa1 (patch)
tree8e580560dd5f53503b5296ca44cec13ab6ab0784 /pkgs/development/python-modules
parent034c9816d5236e5c0131b715ee08fed56c89d4ad (diff)
downloadnixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.tar
nixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.tar.gz
nixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.tar.bz2
nixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.tar.lz
nixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.tar.xz
nixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.tar.zst
nixlib-138d3be11aac7abe23501ac74c77357e0b59efa1.zip
pythonPackages.reportlab: remove test files that require network for the tests to pass (#44244)
closes #44204
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/reportlab/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/reportlab/default.nix b/pkgs/development/python-modules/reportlab/default.nix
index 6ede1b8937b5..298c3c79e387 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
+}