Skip to content

Commit 2e4e8dd

Browse files
jonringermweinelt
authored andcommitted
python3Packages.myst-parser: disable sphinx sensitive tests
1 parent 516c9ae commit 2e4e8dd

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pkgs/development/python-modules/myst-parser/default.nix

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
, fetchpatch
55
, flit-core
66
, pythonOlder
7+
, defusedxml
78
, docutils
89
, jinja2
910
, markdown-it-py
@@ -16,6 +17,7 @@
1617
, pytest-regressions
1718
, sphinx-pytest
1819
, pytestCheckHook
20+
, pythonRelaxDepsHook
1921
}:
2022

2123
buildPythonPackage rec {
@@ -40,7 +42,10 @@ buildPythonPackage rec {
4042
})
4143
];
4244

43-
nativeBuildInputs = [ flit-core ];
45+
nativeBuildInputs = [
46+
flit-core
47+
pythonRelaxDepsHook
48+
];
4449

4550
propagatedBuildInputs = [
4651
docutils
@@ -54,6 +59,7 @@ buildPythonPackage rec {
5459

5560
nativeCheckInputs = [
5661
beautifulsoup4
62+
defusedxml
5763
pytest-param-files
5864
pytest-regressions
5965
sphinx-pytest
@@ -64,6 +70,10 @@ buildPythonPackage rec {
6470
"myst_parser"
6571
];
6672

73+
pythonRelaxDeps = [
74+
"docutils"
75+
];
76+
6777
disabledTests = [
6878
# AssertionError due to different files
6979
"test_basic"
@@ -72,6 +82,9 @@ buildPythonPackage rec {
7282
"test_fieldlist_extension"
7383
# docutils 0.19 expectation mismatches
7484
"test_docutils_roles"
85+
# sphinx 7.0 expectation mismatches
86+
"test_heading_slug_func"
87+
"test_references_singlehtml"
7588
# sphinx 6.0 expectation mismatches
7689
"test_sphinx_directives"
7790
# sphinx 5.3 expectation mismatches

0 commit comments

Comments
 (0)