git: 0a62917da845 - main - devel/py-attrdict: fix build for python >= 3.10

From: Loïc Bartoletti <lbartoletti_at_FreeBSD.org>
Date: Tue, 13 Dec 2022 12:54:00 UTC
The branch main has been updated by lbartoletti:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a62917da845614158d3e35fe80c5c51e71b675a

commit 0a62917da845614158d3e35fe80c5c51e71b675a
Author:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
AuthorDate: 2022-12-07 07:06:22 +0000
Commit:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2022-12-13 12:53:47 +0000

    devel/py-attrdict: fix build for python >= 3.10
    
    Replace `from collections import` by `from collections.abc import`
---
 devel/py-attrdict/Makefile                        |  1 +
 devel/py-attrdict/files/patch-attrdict_default.py | 11 +++++++++++
 devel/py-attrdict/files/patch-attrdict_mapping.py | 11 +++++++++++
 devel/py-attrdict/files/patch-attrdict_merge.py   | 11 +++++++++++
 devel/py-attrdict/files/patch-attrdict_mixins.py  | 11 +++++++++++
 5 files changed, 45 insertions(+)

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,5 +1,6 @@
 PORTNAME=	attrdict
 DISTVERSION=	2.0.1
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
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