summary refs log tree commit diff
path: root/pkgs/development/python-modules/xhtml2pdf/default.nix
blob: efdb40cd6f8786594e70996567fe37b5e8724856 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchPypi
, pillow
, html5lib
, pypdf2
, reportlab
, six
, python-bidi
, arabic-reshaper
, setuptools
}:

buildPythonPackage rec {
  pname = "xhtml2pdf";
  version = "0.2.5";

  propagatedBuildInputs = [
    pillow html5lib pypdf2 reportlab six
    setuptools python-bidi arabic-reshaper
  ];

  src = fetchPypi {
    inherit pname version;
    sha256 = "6797e974fac66f0efbe927c1539a2756ca4fe8777eaa5882bac132fc76b39421";
  };

  meta = with lib; {
    description = "A PDF generator using HTML and CSS";
    homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
    license = licenses.asl20;
  };

}