From 1cdbaeaf702cb1e86818875f6656c50b32e6e76c Mon Sep 17 00:00:00 2001 From: misuzu Date: Tue, 4 Jul 2023 20:32:48 +0300 Subject: [PATCH] python310Packages.translatehtml: compatibility with new beautifulsoup4 --- .../development/python-modules/translatehtml/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/translatehtml/default.nix b/pkgs/development/python-modules/translatehtml/default.nix index c99b8a44a1db..e97e248edfdd 100644 --- a/pkgs/development/python-modules/translatehtml/default.nix +++ b/pkgs/development/python-modules/translatehtml/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , argostranslate , beautifulsoup4 }: @@ -16,6 +17,14 @@ buildPythonPackage rec { sha256 = "6b30ceb8b6f174917e2660caf2d2ccbaa71d8d24c815316edf56b061d678820d"; }; + patches = [ + # https://github.com/argosopentech/translate-html/pull/15 + (fetchpatch { + url = "https://github.com/argosopentech/translate-html/commit/b1c2d210ec1b5fcd0eb79f578bdb5d3ed5c9963a.patch"; + hash = "sha256-U65vVuRodMS32Aw6PZlLwaCos51P5B88n5hDgJNMZXU="; + }) + ]; + propagatedBuildInputs = [ argostranslate beautifulsoup4