From a5cc0e142825c142478c0139e8306046aeebbdb0 Mon Sep 17 00:00:00 2001 From: Freeman Latif Date: Thu, 27 Aug 2020 18:22:57 +0700 Subject: [PATCH] overrides for weasyprint --- overrides.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/overrides.nix b/overrides.nix index e688683..48030db 100644 --- a/overrides.nix +++ b/overrides.nix @@ -68,6 +68,25 @@ self: super: } ); + cairocffi = super.cairocffi.overridePythonAttrs ( + old: { + inherit (pkgs.python3.pkgs.cairocffi) patches; + buildInputs = old.buildInputs ++ [ self.pytest-runner ]; + } + ); + + cairosvg = super.cairosvg.overridePythonAttrs ( + old: { + buildInputs = old.buildInputs ++ [ self.pytest-runner ]; + } + ); + + cssselect2 = super.cssselect2.overridePythonAttrs ( + old: { + buildInputs = old.buildInputs ++ [ self.pytest-runner ]; + } + ); + cffi = # cffi is bundled with pypy if self.python.implementation == "pypy" then null else ( @@ -966,6 +985,12 @@ self: super: } ); + tinycss2 = super.tinycss2.overridePythonAttrs ( + old: { + buildInputs = old.buildInputs ++ [ self.pytest-runner ]; + } + ); + # nix uses a dash, poetry uses an underscore typing_extensions = super.typing_extensions or self.typing-extensions; @@ -1011,6 +1036,14 @@ self: super: python = self.python; }).wheel; }; + + weasyprint = super.weasyprint.overridePythonAttrs ( + old: { + inherit (pkgs.python3.pkgs.weasyprint) patches; + buildInputs = old.buildInputs ++ [ self.pytest-runner ]; + } + ); + wheel = let isWheel = super.wheel.src.isWheel or false;