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.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-K5iWEKrtL9Qtpk9s3FOc8+5wzjcLy6hy23JCGtUV3R4=";
22 };
23
24 propagatedBuildInputs = [
25 docutils
26 readme_renderer
27 packaging
28 pygments
29 ];
30
31 checkInputs = [
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 license = licenses.gpl3Only;
48 maintainers = with maintainers; [ koral ];
49 };
50}