Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 47 lines 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.34"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "9675a26d01ec141cb717091bb139b6227bfb3794f521943101da50327bff4825"; 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 ''; 34 35 checkPhase = '' 36 cd tests 37 LC_ALL="en_US.UTF-8" ${python.interpreter} runAll.py 38 ''; 39 40 # See https://bitbucket.org/pypy/compatibility/wiki/reportlab%20toolkit 41 disabled = isPyPy; 42 43 meta = { 44 description = "An Open Source Python library for generating PDFs and graphics"; 45 homepage = http://www.reportlab.com/; 46 }; 47}