aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-07-25 14:35:28 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-07-25 16:17:04 +0000
commitd94bd64c4fdd2ef7bbcb8f4909fdf1cec579e3f2 (patch)
treec1f5fbbd0c7948d8fe05750853fb56cb9705b34b
parentfee82e7eb0fb5404dc545bd4372efaa9c608412d (diff)
downloadports-d94bd64c4fdd2ef7bbcb8f4909fdf1cec579e3f2.tar.gz
ports-d94bd64c4fdd2ef7bbcb8f4909fdf1cec579e3f2.zip
textproc/py-colorclass: unbreak with python310
>>> import colorclass Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/site-packages/colorclass/__init__.py", line 11, in <module> from colorclass.codes import list_tags # noqa File "/usr/local/lib/python3.10/site-packages/colorclass/codes.py", line 4, in <module> from collections import Mapping ImportError: cannot import name 'Mapping' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py)
-rw-r--r--textproc/py-colorclass/Makefile4
-rw-r--r--textproc/py-colorclass/distinfo2
2 files changed, 6 insertions, 0 deletions
diff --git a/textproc/py-colorclass/Makefile b/textproc/py-colorclass/Makefile
index 9309e1ff23e9..0bc34415b756 100644
--- a/textproc/py-colorclass/Makefile
+++ b/textproc/py-colorclass/Makefile
@@ -1,9 +1,13 @@
PORTNAME= colorclass
PORTVERSION= 2.2.0
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PATCH_SITES= https://github.com/Robpol86/${PORTNAME}/commit/
+PATCHFILES+= f8bbe9fdcff1.patch:-p1 # https://github.com/Robpol86/colorclass/pull/27
+
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Colorful worry-free console applications
diff --git a/textproc/py-colorclass/distinfo b/textproc/py-colorclass/distinfo
index a23b0df29b67..135b36409783 100644
--- a/textproc/py-colorclass/distinfo
+++ b/textproc/py-colorclass/distinfo
@@ -1,3 +1,5 @@
TIMESTAMP = 1477478547
SHA256 (colorclass-2.2.0.tar.gz) = b05c2a348dfc1aff2d502527d78a5b7b7e2f85da94a96c5081210d8e9ee8e18b
SIZE (colorclass-2.2.0.tar.gz) = 17037
+SHA256 (f8bbe9fdcff1.patch) = a88c098b2ae446049dab34b459efe07d13ebd15890ab76414df4d5a63730b870
+SIZE (f8bbe9fdcff1.patch) = 1141