Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
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.48"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "0bfe3fe6e1bd1d922f83683eae2ba1d2d29de94e25fb115eacca9530b4b02f76"; 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}