1{ lib
2, buildPythonPackage
3, docutils
4, fetchFromGitHub
5, fetchpatch
6, pytestCheckHook
7, pythonOlder
8, sphinx
9}:
10
11buildPythonPackage rec {
12 pname = "breathe";
13 version = "4.35.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "michaeljones";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-LJXvtScyWRL8zfj877bJ4xuIbLV9IN3Sn9KPUTLMjMI=";
23 };
24
25 patches = [
26 (fetchpatch {
27 # sphinx 7.2 support https://github.com/breathe-doc/breathe/pull/956
28 name = "breathe-sphinx7.2-support.patch";
29 url = "https://github.com/breathe-doc/breathe/commit/46abd77157a2a57e81586e4f8765ae8f1a09d167.patch";
30 hash = "sha256-zGFO/Ndk/9Yv2dbo8fpEoB/vchZP5vRceoC1E3sUny8=";
31 })
32 ];
33
34 propagatedBuildInputs = [
35 docutils
36 sphinx
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "breathe"
45 ];
46
47 meta = with lib; {
48 description = "Sphinx Doxygen renderer";
49 homepage = "https://github.com/michaeljones/breathe";
50 license = licenses.bsd3;
51 maintainers = with maintainers; [ ];
52 inherit (sphinx.meta) platforms;
53 };
54}