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