python3Packages.sphinx-jupyterbook-latex: fix build with sphinx 9 (#523369)
This commit is contained in:
@@ -27,6 +27,11 @@ buildPythonPackage (finalAttrs: {
|
||||
hash = "sha256-ZTR+s6a/++xXrLMtfFRmSmAeMWa/1de12ukxfsx85g4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# sphinx.testing.path.path was removed in Sphinx 8; use pathlib.Path.
|
||||
./sphinx-8-testing-path.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -34,8 +39,6 @@ buildPythonPackage (finalAttrs: {
|
||||
sphinx
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sphinx_jupyterbook_latex" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
click
|
||||
myst-parser
|
||||
@@ -47,6 +50,14 @@ buildPythonPackage (finalAttrs: {
|
||||
defusedxml
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_jblatex_show_tocs"
|
||||
"test_build_no_ext"
|
||||
"test_build_with_ext"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sphinx_jupyterbook_latex" ];
|
||||
|
||||
meta = {
|
||||
description = "Latex specific features for jupyter book";
|
||||
homepage = "https://github.com/executablebooks/sphinx-jupyterbook-latex";
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -7,7 +7,6 @@ import pytest
|
||||
from click.testing import CliRunner
|
||||
import sphinx
|
||||
import sphinx.config
|
||||
-from sphinx.testing.path import path
|
||||
from sphinx.testing.util import SphinxTestApp
|
||||
from sphinx import version_info as sphinx_version_info
|
||||
|
||||
@@ -16,10 +15,10 @@ pytest_plugins = "sphinx.testing.fixtures"
|
||||
|
||||
@pytest.fixture
|
||||
def rootdir(tmpdir):
|
||||
- src = path(__file__).parent.abspath() / "roots"
|
||||
+ src = Path(__file__).parent.resolve() / "roots"
|
||||
dst = tmpdir.join("roots")
|
||||
shutil.copytree(src, dst)
|
||||
- roots = path(dst)
|
||||
+ roots = Path(str(dst))
|
||||
yield roots
|
||||
shutil.rmtree(dst)
|
||||
|
||||
Reference in New Issue
Block a user