Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 543 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pillow 5, html5lib 6, pypdf2 7, reportlab 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "xhtml2pdf"; 13 version = "0.2.4"; 14 15 propagatedBuildInputs = [pillow html5lib pypdf2 reportlab six]; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "6793fbbdcb6bb8a4a70132966d8d95e95ea3498cdf0e82252d2b8e9aae34fcb5"; 20 }; 21 22 meta = with stdenv.lib; { 23 description = "A PDF generator using HTML and CSS"; 24 homepage = "https://github.com/xhtml2pdf/xhtml2pdf"; 25 license = licenses.asl20; 26 }; 27 28}