1{ lib
2, buildPythonPackage
3, fetchPypi
4, pillow
5, html5lib
6, pypdf2
7, reportlab
8, six
9, python-bidi
10, arabic-reshaper
11, setuptools
12}:
13
14buildPythonPackage rec {
15 pname = "xhtml2pdf";
16 version = "0.2.5";
17
18 propagatedBuildInputs = [
19 pillow html5lib pypdf2 reportlab six
20 setuptools python-bidi arabic-reshaper
21 ];
22
23 src = fetchPypi {
24 inherit pname version;
25 sha256 = "6797e974fac66f0efbe927c1539a2756ca4fe8777eaa5882bac132fc76b39421";
26 };
27
28 meta = with lib; {
29 description = "A PDF generator using HTML and CSS";
30 homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
31 license = licenses.asl20;
32 };
33
34}