From d208a99b094e8a040a533fdd38d649ab5e4d15c3 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Fri, 30 Jun 2023 15:09:05 +0800 Subject: www/py-lektor: Allow build with py-mistune installed - Bump PORTREVISION for package change PR: 263956 --- www/py-lektor/Makefile | 1 + www/py-lektor/files/patch-mistune | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 www/py-lektor/files/patch-mistune diff --git a/www/py-lektor/Makefile b/www/py-lektor/Makefile index 02941c9e8a52..359b3ef8554b 100644 --- a/www/py-lektor/Makefile +++ b/www/py-lektor/Makefile @@ -1,5 +1,6 @@ PORTNAME= Lektor PORTVERSION= 3.3.7 +PORTREVISION= 1 CATEGORIES= www devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/www/py-lektor/files/patch-mistune b/www/py-lektor/files/patch-mistune new file mode 100644 index 000000000000..ae223fdd6783 --- /dev/null +++ b/www/py-lektor/files/patch-mistune @@ -0,0 +1,22 @@ +--- lektor/markdown.py.orig 2022-09-21 19:15:42 UTC ++++ lektor/markdown.py +@@ -1,7 +1,7 @@ + import threading + from weakref import ref as weakref + +-import mistune ++import mistune0 as mistune + from markupsafe import Markup + from werkzeug.urls import url_parse + +--- setup.cfg.orig 2022-09-21 19:16:28 UTC ++++ setup.cfg +@@ -42,7 +42,7 @@ install_requires = + Flask + inifile>=0.4.1 + Jinja2>=3.0 +- mistune>=0.7.0,<2 ++ mistune0>=0.7.0,<2 + pip + python-slugify + requests[security] -- cgit v1.2.3