3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/xhtml2pdf/default.nix
2022-03-19 11:21:02 +01:00

54 lines
884 B
Nix

{ lib
, arabic-reshaper
, buildPythonPackage
, fetchFromGitHub
, html5lib
, pillow
, pypdf3
, pytestCheckHook
, python-bidi
, pythonOlder
, reportlab
, svglib
}:
buildPythonPackage rec {
pname = "xhtml2pdf";
version = "0.2.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-EyIERvAC98LqPTMCdwWqTkm1RiMhikscL0tnMZUHIT8=";
};
propagatedBuildInputs = [
arabic-reshaper
html5lib
pillow
pypdf3
python-bidi
reportlab
svglib
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"xhtml2pdf"
];
meta = with lib; {
description = "A PDF generator using HTML and CSS";
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}