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.34.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-OOc3XQjqQa0cVpA+/HHco+koL+0whUm5qC7x3xiEdwQ=";
23 };
24
25 patches = [
26 (fetchpatch {
27 url = "https://github.com/breathe-doc/breathe/commit/de3504c81c7cefc87c8229743f93232ca00a685d.patch";
28 hash = "sha256-UGld5j0F/hnTuS7KUFvgQL52xCUdaJ3/NeuEuHhpCxI=";
29 })
30 ];
31
32 propagatedBuildInputs = [
33 docutils
34 sphinx
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "breathe"
43 ];
44
45 meta = with lib; {
46 description = "Sphinx Doxygen renderer";
47 homepage = "https://github.com/michaeljones/breathe";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ ];
50 inherit (sphinx.meta) platforms;
51 };
52}