From ad6dd3471101a262eb6ed4edf1b17debf3d8b677 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Aug 2022 18:38:11 +0200 Subject: [PATCH] python3Packages.myst-parser: relax docutils constraint Two failing tests that expect some autogenerated URLs to use http, while the use https. Also an old path to python peps was replaced with a new path. --- pkgs/development/python-modules/myst-parser/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/myst-parser/default.nix b/pkgs/development/python-modules/myst-parser/default.nix index 6358dccdb065..e81bf763b3a8 100644 --- a/pkgs/development/python-modules/myst-parser/default.nix +++ b/pkgs/development/python-modules/myst-parser/default.nix @@ -30,6 +30,11 @@ buildPythonPackage rec { sha256 = "sha256-GEtrC7o5YnkuvBfQQfhG5P74QMiHz63Fdh1cC/r5CF0="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "docutils>=0.15,<0.19" "docutils>=0.15" + ''; + format = "flit"; nativeBuildInputs = [ flit-core ]; @@ -60,6 +65,8 @@ buildPythonPackage rec { "test_footnotes" "test_gettext_html" "test_fieldlist_extension" + # docutils 0.19 expectation mismatches + "test_docutils_roles" ]; meta = with lib; {