1{ buildPythonPackage 2, fetchPypi 3, freetype 4, pillow 5, glibcLocales 6, python 7, isPyPy 8}: 9 10let 11 ft = freetype.overrideAttrs (oldArgs: { dontDisableStatic = true; }); 12in buildPythonPackage rec { 13 pname = "reportlab"; 14 version = "3.5.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "3836a49e7ea7bce458f437cbc094633c7fd4ac027180565875c18ecc726f261e"; 19 }; 20 21 checkInputs = [ glibcLocales ]; 22 23 buildInputs = [ ft pillow ]; 24 25 postPatch = '' 26 # Remove all the test files that require access to the internet to pass. 27 rm tests/test_lib_utils.py 28 rm tests/test_platypus_general.py 29 30 # Remove the tests that require Vera fonts installed 31 rm tests/test_graphics_render.py 32 ''; 33 34 checkPhase = '' 35 cd tests 36 LC_ALL="en_US.UTF-8" ${python.interpreter} runAll.py 37 ''; 38 39 # See https://bitbucket.org/pypy/compatibility/wiki/reportlab%20toolkit 40 disabled = isPyPy; 41 42 meta = { 43 description = "An Open Source Python library for generating PDFs and graphics"; 44 homepage = http://www.reportlab.com/; 45 }; 46}