19 buildPythonPackage rec {
24 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
30 hash = "sha256-sva1Oqz4FsLz/www8IPVxol3D0hx5F5hQ0I/rSRP9sE=";
49 nativeCheckInputs = [ pytestCheckHook ];
52 # Tests requires network access
53 "test_document_cannot_identify_image"
54 "test_document_with_broken_image"
57 pythonImportsCheck = [
63 changelog = "https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v${version}";
64 description = "PDF generator using HTML and CSS";
65 homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
66 license = lib.licenses.asl20;
67 mainProgram = "xhtml2pdf";
68 maintainers = with lib.maintainers; [ drupol ];