about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/readme_renderer/default.nix
blob: 0d22a0c56c9f47bd40d0c4f8be496dcafa1fb9e4 (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
, bleach
, buildPythonPackage
, cmarkgfm
, docutils
, fetchPypi
, future
, mock
, pygments
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "readme_renderer";
  version = "29.0";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-kv1awr+Gd/MQ8zA6pLzludX58glKuYwp8TeR17gFo9s=";
  };

  propagatedBuildInputs = [
    bleach
    cmarkgfm
    docutils
    future
    pygments
  ];

  checkInputs = [
    mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "readme_renderer" ];

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