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.6.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "68f9324000cfc5570b5a59a92306691b5d655078a399f20bc72c2581fe903261"; 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 rm tests/test_platypus_images.py 30 31 # Remove the tests that require Vera fonts installed 32 rm tests/test_graphics_render.py 33 rm tests/test_graphics_charts.py 34 ''; 35 36 checkPhase = '' 37 cd tests 38 LC_ALL="en_US.UTF-8" ${python.interpreter} runAll.py 39 ''; 40 41 # See https://bitbucket.org/pypy/compatibility/wiki/reportlab%20toolkit 42 disabled = isPyPy; 43 44 meta = { 45 description = "An Open Source Python library for generating PDFs and graphics"; 46 homepage = "http://www.reportlab.com/"; 47 }; 48}