21 buildPythonPackage rec {
22 pname = "myst-parser";
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
29 owner = "executablebooks";
31 rev = "refs/tags/v${version}";
32 hash = "sha256-1BW7Z+0rs5Up+VZ3vDygnhLzE9Y2BqEMnTnflboweu0=";
37 name = "myst-parser-sphinx7.2-compat.patch";
38 url = "https://github.com/executablebooks/MyST-Parser/commit/4f670fc04c438b57a9d4014be74e9a62cc0deba4.patch";
39 hash = "sha256-FCvFSsD7qQwqWjSW7R4Gx+E2jaGkifSZqaRbAglt9Yw=";
43 nativeBuildInputs = [ flit-core ];
45 propagatedBuildInputs = [
61 ] ++ markdown-it-py.optional-dependencies.linkify;
63 pythonImportsCheck = [
68 # AssertionError due to different files
72 "test_fieldlist_extension"
73 # docutils 0.19 expectation mismatches
75 # sphinx 6.0 expectation mismatches
76 "test_sphinx_directives"
77 # sphinx 5.3 expectation mismatches
83 description = "Sphinx and Docutils extension to parse MyST";
84 homepage = "https://myst-parser.readthedocs.io/";
85 changelog = "https://raw.githubusercontent.com/executablebooks/MyST-Parser/v${version}/CHANGELOG.md";
86 license = licenses.mit;
87 maintainers = with maintainers; [ loicreynier ];