python3Packages.hyperkitty: fix mistune imports for mistune >= 2.0.0

This commit is contained in:
Nikolay Korotkiy 2022-01-02 17:07:38 +03:00
parent 1eb2f3f676
commit 343e96c0cc
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -43,6 +43,9 @@ buildPythonPackage rec {
postPatch = ''
# isort is a development dependency
sed -i '/isort/d' setup.py
# Fix mistune imports for mistune >= 2.0.0
# https://gitlab.com/mailman/hyperkitty/-/merge_requests/379
sed -i 's/mistune.scanner/mistune.util/' hyperkitty/lib/renderer.py
'';
propagatedBuildInputs = [