2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-05-20 18:12:45 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pillow
|
|
|
|
, html5lib
|
|
|
|
, pypdf2
|
|
|
|
, reportlab
|
|
|
|
, six
|
2020-11-18 23:36:22 +00:00
|
|
|
, python-bidi
|
|
|
|
, arabic-reshaper
|
|
|
|
, setuptools
|
2019-05-20 18:12:45 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xhtml2pdf";
|
2020-10-25 09:06:58 +00:00
|
|
|
version = "0.2.5";
|
2019-05-20 18:12:45 +01:00
|
|
|
|
2020-11-18 23:36:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pillow html5lib pypdf2 reportlab six
|
|
|
|
setuptools python-bidi arabic-reshaper
|
|
|
|
];
|
2019-05-20 18:12:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:58 +00:00
|
|
|
sha256 = "6797e974fac66f0efbe927c1539a2756ca4fe8777eaa5882bac132fc76b39421";
|
2019-05-20 18:12:45 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-20 18:12:45 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|