textproc/py-m2r: Allow build with py-mistune installed

- Bump PORTREVISION for package change

PR:		263956
2023Q3
Po-Chuan Hsieh 2023-06-30 15:08:57 +08:00
parent ea2b285043
commit a5789ccf77
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= m2r
DISTVERSION= 0.3.1
PORTREVISION= 1
CATEGORIES= textproc devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View File

@ -0,0 +1,22 @@
--- m2r.py.orig 2022-11-17 08:04:26 UTC
+++ m2r.py
@@ -10,7 +10,7 @@ from argparse import ArgumentParser, Namespace
from docutils import statemachine, nodes, io, utils
from docutils.parsers import rst
from docutils.utils import column_width
-import mistune
+import mistune0 as mistune
from urllib.parse import urlparse
__version__ = '0.3.1'
--- setup.py.orig 2022-11-17 08:04:26 UTC
+++ setup.py
@@ -16,7 +16,7 @@ except ImportError:
with open(readme_file) as f:
readme = f.read()
-install_requires = ['mistune<2', 'docutils']
+install_requires = ['mistune0<2', 'docutils']
test_requirements = ['pygments']
setup(