Skip to content

Commit

Permalink
Merge pull request NixOS#218964 from superherointj/python311Packages.…
Browse files Browse the repository at this point in the history
…myst-parser-0.19.0

python311Packages.myst-parser: 0.18.1 -> 0.19.0
  • Loading branch information
superherointj authored Mar 1, 2023
2 parents 8a4d32f + b87e081 commit f8b1031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/mdit-py-plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

buildPythonPackage rec {
pname = "mdit-py-plugins";
version = "0.3.3";
version = "0.3.4";
format = "pyproject";

disabled = pythonOlder "3.6";
Expand All @@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "executablebooks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9eaVM5KxrMY5q0c2KWmctCHyPGmEGGNa9B3LoRL/mcI=";
hash = "sha256-BvxqMSl8YXD84O6qjDI0VZgZpqL0UL0vYDMKxCc9qtI=";
};

nativeBuildInputs = [
Expand Down
24 changes: 3 additions & 21 deletions pkgs/development/python-modules/myst-parser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

buildPythonPackage rec {
pname = "myst-parser";
version = "0.18.1";
version = "0.19.0";
format = "pyproject";

disabled = pythonOlder "3.7";
Expand All @@ -28,15 +28,9 @@ buildPythonPackage rec {
owner = "executablebooks";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-wgRZwafAF05LtwjH6SVKzsY7bKeZ6lUlM3dB5PdOn1E=";
sha256 = "sha256-5l22iEteXNcgyW8Qq7MTZeHfN8CvledBPq7dZiytPkw=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace "docutils>=0.15,<0.19" "docutils>=0.15" \
--replace "sphinx>=4,<6" "sphinx"
'';

nativeBuildInputs = [ flit-core ];

propagatedBuildInputs = [
Expand All @@ -49,8 +43,6 @@ buildPythonPackage rec {
typing-extensions
];

pythonImportsCheck = [ "myst_parser" ];

nativeCheckInputs = [
beautifulsoup4
pytest-param-files
Expand All @@ -59,17 +51,7 @@ buildPythonPackage rec {
pytestCheckHook
];

disabledTests = [
# AssertionError due to different files
"test_basic"
"test_footnotes"
"test_gettext_html"
"test_fieldlist_extension"
# docutils 0.19 expectation mismatches
"test_docutils_roles"
# sphinx 6.0 expectation mismatches
"test_sphinx_directives"
];
pythonImportsCheck = [ "myst_parser" ];

meta = with lib; {
description = "Sphinx and Docutils extension to parse MyST";
Expand Down

0 comments on commit f8b1031

Please sign in to comment.