about summary refs log tree commit diff
path: root/pkgs/development/python-modules/myst-parser
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-12-31 15:28:37 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-05 13:20:45 +0100
commitf6eecc04eef5dbabba512acbd8480b2c02c25720 (patch)
treefaeb19876bb66734d8f54c103c7f59312f122114 /pkgs/development/python-modules/myst-parser
parentf5c98592d0ffd318a59ac30c2915601c495c2149 (diff)
python3Packages.myst-parser: Relax sphinx constraint
and disable failing tests for now.
Diffstat (limited to 'pkgs/development/python-modules/myst-parser')
-rw-r--r--pkgs/development/python-modules/myst-parser/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/myst-parser/default.nix b/pkgs/development/python-modules/myst-parser/default.nix
index a7a0ec69c8f52..f3efa9f85b2a2 100644
--- a/pkgs/development/python-modules/myst-parser/default.nix
+++ b/pkgs/development/python-modules/myst-parser/default.nix
@@ -20,6 +20,7 @@
 buildPythonPackage rec {
   pname = "myst-parser";
   version = "0.18.1";
+  format = "pyproject";
 
   disabled = pythonOlder "3.7";
 
@@ -32,11 +33,10 @@ buildPythonPackage rec {
 
   postPatch = ''
     substituteInPlace pyproject.toml \
-      --replace "docutils>=0.15,<0.19" "docutils>=0.15"
+      --replace "docutils>=0.15,<0.19" "docutils>=0.15" \
+      --replace "sphinx>=4,<6" "sphinx"
   '';
 
-  format = "flit";
-
   nativeBuildInputs = [ flit-core ];
 
   propagatedBuildInputs = [
@@ -67,6 +67,8 @@ buildPythonPackage rec {
     "test_fieldlist_extension"
     # docutils 0.19 expectation mismatches
     "test_docutils_roles"
+    # sphinx 6.0 expectation mismatches
+    "test_sphinx_directives"
   ];
 
   meta = with lib; {