git: 2bf3b3543e1f - main - net/py-aiohappyeyeballs: Add py-aiohappyeyeballs 2.3.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:21:51 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2bf3b3543e1f7bbe2bb4db4e26a5f79b7cda8795

commit 2bf3b3543e1f7bbe2bb4db4e26a5f79b7cda8795
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 16:44:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:53 +0000

    net/py-aiohappyeyeballs: Add py-aiohappyeyeballs 2.3.2
    
    This library exists to allow connecting with Happy Eyeballs when you already
    have a list of addrinfo and not a DNS name.
    
    The stdlib version of loop.create_connection() will only work when you pass in
    an unresolved name which is not a good fit when using DNS caching or resolving
    names via another method such was zeroconf.
---
 net/Makefile                      |  1 +
 net/py-aiohappyeyeballs/Makefile  | 22 ++++++++++++++++++++++
 net/py-aiohappyeyeballs/distinfo  |  3 +++
 net/py-aiohappyeyeballs/pkg-descr |  6 ++++++
 4 files changed, 32 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index f6760cf4ba2d..6493ea0fa369 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1030,6 +1030,7 @@
     SUBDIR += py-DTLSSocket
     SUBDIR += py-GeoIP2
     SUBDIR += py-aiocoap
+    SUBDIR += py-aiohappyeyeballs
     SUBDIR += py-aiohttp-socks
     SUBDIR += py-amqp
     SUBDIR += py-amqplib
diff --git a/net/py-aiohappyeyeballs/Makefile b/net/py-aiohappyeyeballs/Makefile
new file mode 100644
index 000000000000..13e5f56c085f
--- /dev/null
+++ b/net/py-aiohappyeyeballs/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	aiohappyeyeballs
+PORTVERSION=	2.3.2
+CATEGORIES=	net python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Happy Eyeballs
+WWW=		https://aiohappyeyeballs.readthedocs.io/en/latest/ \
+		https://github.com/aio-libs/aiohappyeyeballs
+
+LICENSE=	PSFL
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/net/py-aiohappyeyeballs/distinfo b/net/py-aiohappyeyeballs/distinfo
new file mode 100644
index 000000000000..4f6949ad651d
--- /dev/null
+++ b/net/py-aiohappyeyeballs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722711133
+SHA256 (aiohappyeyeballs-2.3.2.tar.gz) = 77e15a733090547a1f5369a1287ddfc944bd30df0eb8993f585259c34b405f4e
+SIZE (aiohappyeyeballs-2.3.2.tar.gz) = 11333
diff --git a/net/py-aiohappyeyeballs/pkg-descr b/net/py-aiohappyeyeballs/pkg-descr
new file mode 100644
index 000000000000..e22fe9ae53b8
--- /dev/null
+++ b/net/py-aiohappyeyeballs/pkg-descr
@@ -0,0 +1,6 @@
+This library exists to allow connecting with Happy Eyeballs when you already
+have a list of addrinfo and not a DNS name.
+
+The stdlib version of loop.create_connection() will only work when you pass in
+an unresolved name which is not a good fit when using DNS caching or resolving
+names via another method such was zeroconf.