Skip to content

Commit

Permalink
python311Packages.xhtml2pdf: fix build
Browse files Browse the repository at this point in the history
- Remove the patch, it was already included in 0.2.16.
- Remove `pythonRelaxDeps`, it's not needed anymore
  • Loading branch information
drupol committed Oct 25, 2024
1 parent 3f6af76 commit 920b92b
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions pkgs/development/python-modules/xhtml2pdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
arabic-reshaper,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
html5lib,
pillow,
pyhanko,
Expand Down Expand Up @@ -31,22 +30,11 @@ buildPythonPackage rec {
hash = "sha256-sva1Oqz4FsLz/www8IPVxol3D0hx5F5hQ0I/rSRP9sE=";
};

patches = [
# https://github.com/xhtml2pdf/xhtml2pdf/pull/754
(fetchpatch2 {
name = "reportlab-compat.patch";
url = "https://github.com/xhtml2pdf/xhtml2pdf/commit/1252510bd23b833b45b4d252aeac62c1eb51eeef.patch";
hash = "sha256-9Fkn086uh2biabmiChbBna8Q4lJV/604yX1ng9j5TGs=";
})
];

nativeBuildInputs = [
setuptools
];

pythonRelaxDeps = [ "reportlab" ];

propagatedBuildInputs = [
dependencies = [
arabic-reshaper
html5lib
pillow
Expand All @@ -71,12 +59,12 @@ buildPythonPackage rec {
"xhtml2pdf.pisa"
];

meta = with lib; {
meta = {
changelog = "https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v${version}";
description = "PDF generator using HTML and CSS";
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
changelog = "https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v${version}";
license = licenses.asl20;
maintainers = [ ];
license = lib.licenses.asl20;
mainProgram = "xhtml2pdf";
maintainers = with lib.maintainers; [ drupol ];
};
}

0 comments on commit 920b92b

Please sign in to comment.