nixpkgs-suyu/pkgs/development/python-modules/restview/default.nix

34 lines
723 B
Nix
Raw Normal View History

2017-09-07 10:01:51 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, readme_renderer
, pygments
, mock
}:
buildPythonPackage rec {
pname = "restview";
2018-06-12 18:47:06 +02:00
version = "2.9.1";
2017-09-07 10:01:51 +02:00
src = fetchPypi {
inherit pname version;
2018-06-12 18:47:06 +02:00
sha256 = "de87c84f19526bd4a76505f6d40b51b7bb03ca43b6067c93f82f1c7237ac9e84";
2017-09-07 10:01:51 +02:00
};
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";
2018-06-27 22:12:57 +02:00
homepage = https://mg.pov.lt/restview/;
2017-09-07 10:01:51 +02:00
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ koral ];
};
2018-06-27 22:12:57 +02:00
}