mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
python3Packages.mdx-truly-sane-lists: fix build with markdown>=3.4
This commit is contained in:
parent
5a596b9095
commit
ceae9248ea
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user