git: 2e7d103dc2ef - main - www/py-httpx-aiohttp: add port: Aiohttp transport for HTTPX

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Mon, 26 May 2025 06:41:17 UTC
The branch main has been updated by tagattie:

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

commit 2e7d103dc2ef4978105db6fa7d7bdbc60d73c3d4
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-05-26 06:18:07 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-05-26 06:40:58 +0000

    www/py-httpx-aiohttp: add port: Aiohttp transport for HTTPX
    
    httpx-aiohttp provides transports for httpx to work on top of aiohttp,
    handling all high-level features like authentication, retries, and
    cookies through httpx, while delegating low-level socket-level HTTP
    messaging to aiohttp.
    
    WWW: https://github.com/karpetrosyan/httpx-aiohttp
---
 www/Makefile                   |  1 +
 www/py-httpx-aiohttp/Makefile  | 31 +++++++++++++++++++++++++++++++
 www/py-httpx-aiohttp/distinfo  |  3 +++
 www/py-httpx-aiohttp/pkg-descr |  4 ++++
 4 files changed, 39 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 16d9e68fa6ef..b8f195d883cb 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1805,6 +1805,7 @@
     SUBDIR += py-httpretty
     SUBDIR += py-httptools
     SUBDIR += py-httpx
+    SUBDIR += py-httpx-aiohttp
     SUBDIR += py-httpx-oauth
     SUBDIR += py-httpx-retries
     SUBDIR += py-httpx-socks
diff --git a/www/py-httpx-aiohttp/Makefile b/www/py-httpx-aiohttp/Makefile
new file mode 100644
index 000000000000..f052fa630e49
--- /dev/null
+++ b/www/py-httpx-aiohttp/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	httpx-aiohttp
+DISTVERSION=	0.1.4
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	Aiohttp transport for HTTPX
+WWW=		https://github.com/karpetrosyan/httpx-aiohttp
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp>=3<4:www/py-aiohttp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1<1:www/py-httpx@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+PORTDOCS=	CHANGELOG.md README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/www/py-httpx-aiohttp/distinfo b/www/py-httpx-aiohttp/distinfo
new file mode 100644
index 000000000000..1e0d5285b835
--- /dev/null
+++ b/www/py-httpx-aiohttp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1748237685
+SHA256 (httpx_aiohttp-0.1.4.tar.gz) = 61030eed28deeac26286d2e872b7c167f5450b7b0eec5a617ae7d3f7da9c8684
+SIZE (httpx_aiohttp-0.1.4.tar.gz) = 8375
diff --git a/www/py-httpx-aiohttp/pkg-descr b/www/py-httpx-aiohttp/pkg-descr
new file mode 100644
index 000000000000..2a54067663a9
--- /dev/null
+++ b/www/py-httpx-aiohttp/pkg-descr
@@ -0,0 +1,4 @@
+httpx-aiohttp provides transports for httpx to work on top of aiohttp,
+handling all high-level features like authentication, retries, and
+cookies through httpx, while delegating low-level socket-level HTTP
+messaging to aiohttp.