nixpkgs/pkgs/development/python-modules/xhtml2pdf/default.nix
2020-11-05 15:47:05 -08:00

29 lines
543 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pillow
, html5lib
, pypdf2
, reportlab
, six
}:
buildPythonPackage rec {
pname = "xhtml2pdf";
version = "0.2.5";
propagatedBuildInputs = [pillow html5lib pypdf2 reportlab six];
src = fetchPypi {
inherit pname version;
sha256 = "6797e974fac66f0efbe927c1539a2756ca4fe8777eaa5882bac132fc76b39421";
};
meta = with stdenv.lib; {
description = "A PDF generator using HTML and CSS";
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
license = licenses.asl20;
};
}