d3a951dc58
collected 3 items / 1 error
==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_renderer.py ____________________
ImportError while importing test module '/build/source/tests/test_renderer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_renderer.py:18: in <module>
from sphinx.testing.fixtures import (
/nix/store/011i5by1fafwmksijc3xmpvp6ik66w07-python3.11-sphinx-7.3.7/lib/python3.11/site-packages/sphinx/testing/fixtures.py:14: in <module>
from sphinx.testing.util import SphinxTestApp, SphinxTestAppWrapperForSkipBuilding
/nix/store/011i5by1fafwmksijc3xmpvp6ik66w07-python3.11-sphinx-7.3.7/lib/python3.11/site-packages/sphinx/testing/util.py:14: in <module>
from defusedxml.ElementTree import parse as xml_parse
E ModuleNotFoundError: No module named 'defusedxml'
=========================== short test summary info ============================
ERROR tests/test_renderer.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 2.84s ===============================
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ 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;
|
|
};
|
|
}
|