2019-05-20 18:12:45 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pillow
|
|
|
|
, html5lib
|
|
|
|
, pypdf2
|
|
|
|
, reportlab
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xhtml2pdf";
|
2020-05-09 11:02:04 +01:00
|
|
|
version = "0.2.4";
|
2019-05-20 18:12:45 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [pillow html5lib pypdf2 reportlab six];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:02:04 +01:00
|
|
|
sha256 = "6793fbbdcb6bb8a4a70132966d8d95e95ea3498cdf0e82252d2b8e9aae34fcb5";
|
2019-05-20 18:12:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A PDF generator using HTML and CSS";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
|
2019-05-20 18:12:45 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|