From 6dc57134dac0037aedfeea5a7c1b7fac17588135 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Thu, 13 Sep 2018 11:21:19 +0200 Subject: [PATCH] pythonPackages.restview: fix tests Failed after readme_renderer was updated. Apply an upstream patch. --- pkgs/development/python-modules/restview/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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