about summary refs log tree commit diff
path: root/pkgs/development/python-modules/readme-renderer/default.nix
blob: bcc961bc18ffc2bf5b0a4b6f44fc3b3ad0440763 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ lib
, bleach
, buildPythonPackage
, cmarkgfm
, docutils
, fetchPypi
, nh3
, pygments
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "readme-renderer";
  version = "43.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "readme_renderer";
    inherit version;
    hash = "sha256-GBjdKBQIE1Ce7tjWJof3zU97rZDU21hgAcXcCdT94xE=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    docutils
    nh3
    pygments
  ];

  optional-dependencies.md = [
    cmarkgfm
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ]
  ++ optional-dependencies.md;

  disabledTests = [
    "test_rst_fixtures"
    "test_rst_008.rst"
  ];

  pythonImportsCheck = [
    "readme_renderer"
  ];

  meta = with lib; {
    description = "Python library for rendering readme descriptions";
    homepage = "https://github.com/pypa/readme_renderer";
    changelog = "https://github.com/pypa/readme_renderer/releases/tag/${version}";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}