Merge pull request #61758 from ecoughlan/python-xhtml2pdf

python-xhtml2pdf: init at 0.2.3
This commit is contained in:
Mario Rodas 2019-05-26 18:33:29 -05:00 committed by GitHub
commit 8d219aa578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pillow
, html5lib
, pypdf2
, reportlab
, six
}:
buildPythonPackage rec {
pname = "xhtml2pdf";
version = "0.2.3";
propagatedBuildInputs = [pillow html5lib pypdf2 reportlab six];
src = fetchPypi {
inherit pname version;
sha256 = "10kg8cmn7zgql2lb6cfmqj94sa0jkraksv3lc4kvpn58sxw7x8w6";
};
meta = with stdenv.lib; {
description = "A PDF generator using HTML and CSS";
homepage = https://github.com/xhtml2pdf/xhtml2pdf;
license = licenses.asl20;
};
}

View File

@ -5196,6 +5196,8 @@ in {
xgboost = pkgs.xgboost;
};
xhtml2pdf = callPackage ../development/python-modules/xhtml2pdf { };
xkcdpass = callPackage ../development/python-modules/xkcdpass { };
xlsx2csv = callPackage ../development/python-modules/xlsx2csv { };