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

39 lines
860 B
Nix
Raw Normal View History

2017-09-07 09:01:51 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
2017-09-07 09:01:51 +01:00
, docutils
, readme_renderer
2020-06-08 20:23:52 +01:00
, packaging
2017-09-07 09:01:51 +01:00
, pygments
, mock
, pytestCheckHook
2017-09-07 09:01:51 +01:00
}:
buildPythonPackage rec {
pname = "restview";
version = "2.9.2";
2017-09-07 09:01:51 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "1p1jgdvc04ws8kga3r0vrq3m0b52qw3clwyydl96a13wb3mrf03r";
2017-09-07 09:01:51 +01:00
};
patches = [
(fetchpatch {
url = "https://github.com/mgedmin/restview/commit/a1ded30a87c65f3ce59a18497a7fc5099317c2be.patch";
sha256 = "1ax7pih456a3nbj8qrrq7hqigbyag4ihzpn6bm0z4y74d0r3v8a5";
})
];
propagatedBuildInputs = [ docutils readme_renderer packaging pygments ];
checkInputs = [ mock pytestCheckHook ];
2017-09-07 09:01:51 +01:00
meta = {
description = "ReStructuredText viewer";
homepage = "https://mg.pov.lt/restview/";
license = lib.licenses.gpl3Only;
2017-09-07 09:01:51 +01:00
maintainers = with lib.maintainers; [ koral ];
};
2018-06-27 21:12:57 +01:00
}