mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
34 lines
723 B
Nix
34 lines
723 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, docutils
|
|
, readme_renderer
|
|
, pygments
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "restview";
|
|
version = "2.9.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "de87c84f19526bd4a76505f6d40b51b7bb03ca43b6067c93f82f1c7237ac9e84";
|
|
};
|
|
|
|
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 = https://mg.pov.lt/restview/;
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ koral ];
|
|
};
|
|
}
|