diff --git a/pkgs/development/python-modules/myst-parser/default.nix b/pkgs/development/python-modules/myst-parser/default.nix index b79a05db5375..bb91e8e228b1 100644 --- a/pkgs/development/python-modules/myst-parser/default.nix +++ b/pkgs/development/python-modules/myst-parser/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonOlder, # build-system flit-core, @@ -25,14 +26,16 @@ }: buildPythonPackage (finalAttrs: { pname = "myst-parser"; - version = "4.0.1"; + version = "5.0.0"; pyproject = true; + disabled = pythonOlder "3.11"; + src = fetchFromGitHub { owner = "executablebooks"; repo = "myst-parser"; tag = "v${finalAttrs.version}"; - hash = "sha256-/Prauz4zuJY39EK2BmgBbH1uwjF4K38e5X5hPYwRBl0="; + hash = "sha256-0lGejdGVVvZar3sPBbvThXzJML7PcR5+shyDHTTtVEY="; }; build-system = [ flit-core ]; @@ -60,15 +63,9 @@ buildPythonPackage (finalAttrs: { ] ++ markdown-it-py.optional-dependencies.linkify; - disabledTests = [ - # sphinx 8.2 compat - # https://github.com/executablebooks/MyST-Parser/issues/1030 - "test_commonmark" - "test_extended_syntaxes" - "test_fieldlist_extension" - "test_includes" - "test_references_singlehtml" - "test_sphinx_directives" + disabledTestPaths = [ + # outdated sphinx fixtures + "tests/test_renderers/test_fixtures_sphinx.py" ]; pythonImportsCheck = [ "myst_parser" ];