diff options
author | Austin Butler <austinabutler@gmail.com> | 2021-04-14 17:08:49 -0700 |
---|---|---|
committer | Austin Butler <austinabutler@gmail.com> | 2021-04-14 17:08:49 -0700 |
commit | 902bef491bf3d3dadd6a568307b5ff96650aa73f (patch) | |
tree | cf7e45bce7a9423b04ad61595f529bd63437c94a /pkgs/development/python-modules/weasyprint | |
parent | d9d60d273d6859d9f09b97f556dd5857a23dd13b (diff) | |
download | nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.tar nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.tar.gz nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.tar.bz2 nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.tar.lz nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.tar.xz nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.tar.zst nixpkgs-902bef491bf3d3dadd6a568307b5ff96650aa73f.zip |
python3Packages.weasyprint: fix failing build
Diffstat (limited to 'pkgs/development/python-modules/weasyprint')
-rw-r--r-- | pkgs/development/python-modules/weasyprint/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index a7188a3103f..8f946c47786 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -1,5 +1,6 @@ { buildPythonPackage, fetchPypi, + fetchpatch, cairosvg, pyphen, cffi, @@ -7,7 +8,6 @@ lxml, html5lib, tinycss, - pygobject2, glib, pango, fontconfig, @@ -43,9 +43,15 @@ buildPythonPackage rec { FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; - propagatedBuildInputs = [ cairosvg pyphen cffi cssselect lxml html5lib tinycss pygobject2 ]; + propagatedBuildInputs = [ cairosvg pyphen cffi cssselect lxml html5lib tinycss ]; + # 47043a1fd7e50a892b9836466f521df85d597c4.patch can be removed after next release of weasyprint, see: + # https://github.com/Kozea/WeasyPrint/issues/1333#issuecomment-818062970 patches = [ + (fetchpatch { + url = "https://github.com/Kozea/WeasyPrint/commit/47043a1fd7e50a892b9836466f521df85d597c44.patch"; + sha256 = "0l9z0hrav3bcdajlg3vbzljq0lkw7hlj8ppzrq3v21hbj1il1nsb"; + }) (substituteAll { src = ./library-paths.patch; fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}"; |