about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/restview/default.nix
blob: 9a4a0f13369edcc58921de5ad4513b5fdb8009df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, readme_renderer
, packaging
, pygments
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "restview";
  version = "3.0.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-K5iWEKrtL9Qtpk9s3FOc8+5wzjcLy6hy23JCGtUV3R4=";
  };

  propagatedBuildInputs = [
    docutils
    readme_renderer
    packaging
    pygments
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "restview"
  ];

  meta = {
    description = "ReStructuredText viewer";
    homepage = "https://mg.pov.lt/restview/";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ koral ];
  };
}