From ceae9248ea6d562b4f106ead7907d2fbb109235d Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 18 Jul 2022 11:15:58 -0700 Subject: [PATCH] python3Packages.mdx-truly-sane-lists: fix build with markdown>=3.4 --- .../mdx-truly-sane-lists/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix index 9ea39e27a16e..5d100c3d24f5 100644 --- a/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix +++ b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , markdown , python }: @@ -16,10 +17,23 @@ buildPythonPackage rec { sha256 = "1h8403ch016cwdy5zklzp7c6xrdyyhl4z07h97qzbafrbq07jyss"; }; + patches = [ + # fix with markdown>=3.4 + # Upstream PR: https://github.com/radude/mdx_truly_sane_lists/pull/12/ + (fetchpatch { + url = "https://github.com/radude/mdx_truly_sane_lists/commit/197fa16bc8d3481b8ea29d54b9cc89716f5d43a2.patch"; + sha256 = "sha256-cYCb+EI4RpebNN02bCy1SSH9Tz4BsnFgUCOeQNC03Oo="; + }) + ]; + propagatedBuildInputs = [ markdown ]; pythonImportsCheck = [ "mdx_truly_sane_lists" ]; + # Hard ImportError from the package trying to view version of markdown, + # which was removed. + # Upstream issue: https://github.com/radude/mdx_truly_sane_lists/issues/11 + doCheck = false; checkPhase = '' ${python.interpreter} mdx_truly_sane_lists/tests.py '';