diff --git a/devel/py-attrdict/Makefile b/devel/py-attrdict/Makefile index c6e22f3d6136..d22f45ee7158 100644 --- a/devel/py-attrdict/Makefile +++ b/devel/py-attrdict/Makefile @@ -1,17 +1,18 @@ PORTNAME= attrdict DISTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= lbartoletti@FreeBSD.org COMMENT= Python dict with attribute-style access WWW= https://pypi.python.org/pypi/attrdict LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= python USE_PYTHON= autoplist distutils .include diff --git a/devel/py-attrdict/files/patch-attrdict_default.py b/devel/py-attrdict/files/patch-attrdict_default.py new file mode 100644 index 000000000000..d0f6e558f251 --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_default.py @@ -0,0 +1,11 @@ +--- attrdict/default.py.orig 2019-02-01 22:18:30 UTC ++++ attrdict/default.py +@@ -1,7 +1,7 @@ + """ + A subclass of MutableAttr that has defaultdict support. + """ +-from collections import Mapping ++from collections.abc import Mapping + + import six + diff --git a/devel/py-attrdict/files/patch-attrdict_mapping.py b/devel/py-attrdict/files/patch-attrdict_mapping.py new file mode 100644 index 000000000000..a3df22356610 --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_mapping.py @@ -0,0 +1,11 @@ +--- attrdict/mapping.py.orig 2022-12-06 06:58:43 UTC ++++ attrdict/mapping.py +@@ -1,7 +1,7 @@ + """ + An implementation of MutableAttr. + """ +-from collections import Mapping ++from collections.abc import Mapping + + import six + diff --git a/devel/py-attrdict/files/patch-attrdict_merge.py b/devel/py-attrdict/files/patch-attrdict_merge.py new file mode 100644 index 000000000000..d0295603cbae --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_merge.py @@ -0,0 +1,11 @@ +--- attrdict/merge.py.orig 2019-02-01 22:18:30 UTC ++++ attrdict/merge.py +@@ -1,7 +1,7 @@ + """ + A right-favoring Mapping merge. + """ +-from collections import Mapping ++from collections.abc import Mapping + + + __all__ = ['merge'] diff --git a/devel/py-attrdict/files/patch-attrdict_mixins.py b/devel/py-attrdict/files/patch-attrdict_mixins.py new file mode 100644 index 000000000000..426f1d3316fe --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_mixins.py @@ -0,0 +1,11 @@ +--- attrdict/mixins.py.orig 2019-02-01 22:18:30 UTC ++++ attrdict/mixins.py +@@ -2,7 +2,7 @@ + Mixin Classes for Attr-support. + """ + from abc import ABCMeta, abstractmethod +-from collections import Mapping, MutableMapping, Sequence ++from collections.abc import Mapping, MutableMapping, Sequence + import re + + import six