about summary refs log tree commit diff
path: root/pkgs/development/python-modules/breathe/default.nix
blob: d9033c4fd3bad397ee80c07b001e08c1ae77f84b (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
{
  lib,
  buildPythonPackage,
  defusedxml,
  docutils,
  fetchFromGitHub,
  fetchpatch,
  pytestCheckHook,
  pythonOlder,
  sphinx,
}:

buildPythonPackage rec {
  pname = "breathe";
  version = "4.35.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "michaeljones";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-LJXvtScyWRL8zfj877bJ4xuIbLV9IN3Sn9KPUTLMjMI=";
  };

  patches = [
    (fetchpatch {
      # sphinx 7.2 support https://github.com/breathe-doc/breathe/pull/956
      name = "breathe-sphinx7.2-support.patch";
      url = "https://github.com/breathe-doc/breathe/commit/46abd77157a2a57e81586e4f8765ae8f1a09d167.patch";
      hash = "sha256-zGFO/Ndk/9Yv2dbo8fpEoB/vchZP5vRceoC1E3sUny8=";
    })
  ];

  propagatedBuildInputs = [
    docutils
    sphinx
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  checkInputs = [ defusedxml ];

  pythonImportsCheck = [ "breathe" ];

  meta = with lib; {
    description = "Sphinx Doxygen renderer";
    mainProgram = "breathe-apidoc";
    homepage = "https://github.com/michaeljones/breathe";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
    inherit (sphinx.meta) platforms;
  };
}