python.pkgs.restview: 2.5.2 -> 2.7.0
This commit is contained in:
parent
69435dfba5
commit
700c95a706
34
pkgs/development/python-modules/restview/default.nix
Normal file
34
pkgs/development/python-modules/restview/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -19136,31 +19136,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
restview = buildPythonPackage rec {
|
restview = callPackage ../development/python-modules/restview { };
|
||||||
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 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
readme = buildPythonPackage rec {
|
readme = buildPythonPackage rec {
|
||||||
name = "readme-${version}";
|
name = "readme-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user