python.pkgs.restview: 2.5.2 -> 2.7.0

This commit is contained in:
Frederik Rietdijk 2017-09-07 10:01:51 +02:00
parent 69435dfba5
commit 700c95a706
2 changed files with 35 additions and 25 deletions

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, readme_renderer
, pygments
, mock
}:
buildPythonPackage rec {
pname = "restview";
name = "${pname}-${version}";
version = "2.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "e7842100f3de179c68cfe7c2cf56c61509cd6068bc6dd58ab42c0ade5d5f97ec";
};
propagatedBuildInputs = [ docutils readme_renderer pygments ];
checkInputs = [ mock ];
postPatch = ''
# dict order breaking tests
sed -i 's@<a href="http://www.example.com" rel="nofollow">@...@' src/restview/tests.py
'';
meta = {
description = "ReStructuredText viewer";
homepage = http://mg.pov.lt/restview/;
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ koral ];
};
}

View File

@ -19136,31 +19136,7 @@ in {
};
restview = buildPythonPackage rec {
name = "restview-${version}";
version = "2.5.2";
src = pkgs.fetchurl {
url = "mirror://pypi/r/restview/${name}.tar.gz";
sha256 = "0gmdmnlhiy6lagi17maiz312374hk6g6x90fhjwnbrwxif4r9bd5";
};
propagatedBuildInputs = with self; [ docutils readme pygments ];
buildInputs = with self; [ mock ];
patchPhase = ''
# dict order breaking tests
sed -i 's@<a href="http://www.example.com" rel="nofollow">@...@' src/restview/tests.py
'';
meta = {
description = "ReStructuredText viewer";
homepage = http://mg.pov.lt/restview/;
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ koral ];
};
};
restview = callPackage ../development/python-modules/restview { };
readme = buildPythonPackage rec {
name = "readme-${version}";