git: 4e3b12e13dab - main - devel/py-hash_ring: Fix build with setuptools 58.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:50:00 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e3b12e13dab6a8e45fe69d8e1e196fe026c113b

commit 4e3b12e13dab6a8e45fe69d8e1e196fe026c113b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 13:32:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:09 +0000

    devel/py-hash_ring: Fix build with setuptools 58.0.0+
    
    With hat:       python
---
 devel/py-hash_ring/files/patch-2to3 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/devel/py-hash_ring/files/patch-2to3 b/devel/py-hash_ring/files/patch-2to3
new file mode 100644
index 000000000000..22bf1a6b274d
--- /dev/null
+++ b/devel/py-hash_ring/files/patch-2to3
@@ -0,0 +1,12 @@
+--- hash_ring/__init__.py.orig	2012-12-15 01:14:49 UTC
++++ hash_ring/__init__.py
+@@ -1,6 +1,6 @@
+-from hash_ring import HashRing
++from .hash_ring import HashRing
+ 
+ try:
+-    from memcache_ring import MemcacheRing
+-except ImportError, e:
++    from .memcache_ring import MemcacheRing
++except ImportError as e:
+     pass