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