2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
sphinx,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "breathe";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.35.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-09-19 14:19:46 +00:00
|
|
|
owner = "breathe-doc";
|
|
|
|
repo = "breathe";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-LJXvtScyWRL8zfj877bJ4xuIbLV9IN3Sn9KPUTLMjMI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
patches = [
|
2024-09-19 14:19:46 +00:00
|
|
|
# sphinx 7.2 support https://github.com/breathe-doc/breathe/pull/964
|
2023-01-20 10:41:00 +00:00
|
|
|
(fetchpatch {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "https://github.com/breathe-doc/breathe/commit/caa8dc45222b35d360c24bf36835a7d8e6d86df2.patch";
|
|
|
|
hash = "sha256-wWe4x4WwZTrDhNZAF7mhfHHNEjd+Kp4YXghL+DPa10w=";
|
|
|
|
})
|
|
|
|
# sphinx 7.2 support https://github.com/breathe-doc/breathe/pull/976
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/breathe-doc/breathe/commit/09c856bf72de41e82582f31855e916295ba6d382.patch";
|
|
|
|
hash = "sha256-vU3DUrj4Jj4AUolFFtWmaLMf9RG7TmKqJe5sCwwRjPI=";
|
2023-01-20 10:41:00 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [ sphinx ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
defusedxml
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "breathe" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Sphinx Doxygen renderer";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "breathe-apidoc";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://github.com/breathe-doc/breathe";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = lib.teams.sphinx.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|