1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 docutils,
6 readme-renderer,
7 packaging,
8 pygments,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "restview";
15 version = "3.0.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-jBoXHBWdRtFdVWn3cCGCiIOhIdb5uvdY1kH8HlSwWuU=";
23 };
24
25 propagatedBuildInputs = [
26 docutils
27 readme-renderer
28 packaging
29 pygments
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "restview" ];
35
36 disabledTests = [
37 # Tests are comparing output
38 "rest_to_html"
39 ];
40
41 meta = with lib; {
42 description = "ReStructuredText viewer";
43 mainProgram = "restview";
44 homepage = "https://mg.pov.lt/restview/";
45 changelog = "https://github.com/mgedmin/restview/blob/${version}/CHANGES.rst";
46 license = licenses.gpl3Only;
47 maintainers = with maintainers; [ koral ];
48 };
49}