python3Packages.mdx-truly-sane-lists: fix build with markdown>=3.4

This commit is contained in:
Jonathan Ringer 2022-07-18 11:15:58 -07:00 committed by Martin Weinelt
parent 5a596b9095
commit ceae9248ea

View File

@ -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
'';