diff --git a/pkgs/development/python-modules/restview/default.nix b/pkgs/development/python-modules/restview/default.nix index e8a8b9dd637d..a6b22220da35 100644 --- a/pkgs/development/python-modules/restview/default.nix +++ b/pkgs/development/python-modules/restview/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , docutils , readme_renderer , pygments @@ -19,6 +20,15 @@ buildPythonPackage rec { propagatedBuildInputs = [ docutils readme_renderer pygments ]; checkInputs = [ mock ]; + patches = [ + # fix tests after readme_renderer update + # TODO remove on next update + (fetchpatch { + url = "https://github.com/mgedmin/restview/commit/541743ded13ae55dea4c437046984a5f13d06e8b.patch"; + sha256 = "031b1dlqx346bz7afpc011lslnq771lnxb6iy1l2285pph534bci"; + }) + ]; + postPatch = '' # dict order breaking tests sed -i 's@@...@' src/restview/tests.py