pythonPackages.restview: fix tests

Failed after readme_renderer was updated. Apply an upstream patch.
This commit is contained in:
Uli Baum 2018-09-13 11:21:19 +02:00
parent bd02a1931a
commit 6dc57134da

View File

@ -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@<a href="http://www.example.com" rel="nofollow">@...@' src/restview/tests.py