1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, docutils
6, readme_renderer
7, packaging
8, pygments
9, mock
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "restview";
15 version = "2.9.2";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "1p1jgdvc04ws8kga3r0vrq3m0b52qw3clwyydl96a13wb3mrf03r";
20 };
21
22 patches = [
23 (fetchpatch {
24 url = "https://github.com/mgedmin/restview/commit/a1ded30a87c65f3ce59a18497a7fc5099317c2be.patch";
25 sha256 = "1ax7pih456a3nbj8qrrq7hqigbyag4ihzpn6bm0z4y74d0r3v8a5";
26 })
27 ];
28
29 propagatedBuildInputs = [ docutils readme_renderer packaging pygments ];
30 checkInputs = [ mock pytestCheckHook ];
31
32 meta = {
33 description = "ReStructuredText viewer";
34 homepage = "https://mg.pov.lt/restview/";
35 license = lib.licenses.gpl3Only;
36 maintainers = with lib.maintainers; [ koral ];
37 };
38}