git: c71f2c9c7fbd - main - www/py-httpx2: New port: Next generation HTTP client
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jun 2026 06:37:22 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c71f2c9c7fbdf5b7808ee0eb95f96945839c03f6
commit c71f2c9c7fbdf5b7808ee0eb95f96945839c03f6
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-19 06:29:38 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-19 06:37:00 +0000
www/py-httpx2: New port: Next generation HTTP client
---
www/Makefile | 1 +
www/py-httpx2/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
www/py-httpx2/distinfo | 3 +++
www/py-httpx2/pkg-descr | 2 ++
4 files changed, 45 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index d4b1c4b306cc..38cc7a3f0a56 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1861,6 +1861,7 @@
SUBDIR += py-httpx-socks
SUBDIR += py-httpx-sse
SUBDIR += py-httpx-ws
+ SUBDIR += py-httpx2
SUBDIR += py-httpx_gssapi
SUBDIR += py-hypercorn
SUBDIR += py-hyperframe
diff --git a/www/py-httpx2/Makefile b/www/py-httpx2/Makefile
new file mode 100644
index 000000000000..2fbf832323e5
--- /dev/null
+++ b/www/py-httpx2/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= httpx2
+DISTVERSION= 2.4.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Next generation HTTP client
+WWW= https://github.com/pydantic/httpx2
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}uv-dynamic-versioning>=0.8.0:devel/py-uv-dynamic-versioning@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=0:devel/py-anyio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpcore2>=2.4.0:www/py-httpcore2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}truststore>=0.10:security/py-truststore@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 concurrent autoplist
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= BROTLI CLI HTTP2 SOCKS ZSTD
+OPTIONS_DEFAULT= HTTP2 SOCKS
+
+BROTLI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR}
+CLI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=8<9:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pygments>=2<3:textproc/py-pygments@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}rich>=10<16:textproc/py-rich@${PY_FLAVOR}
+HTTP2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h2>=3<5:www/py-h2@${PY_FLAVOR}
+SOCKS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}socksio>=1<2:net/py-socksio@${PY_FLAVOR}
+ZSTD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zstandard>=0.18.0:archivers/py-zstandard@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/www/py-httpx2/distinfo b/www/py-httpx2/distinfo
new file mode 100644
index 000000000000..db9ec5818d9a
--- /dev/null
+++ b/www/py-httpx2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1781849537
+SHA256 (httpx2-2.4.0.tar.gz) = 32e0734b61eb0824b3f56a9e98d6d92d381a3ef12c0045aa917ee63df6c411ef
+SIZE (httpx2-2.4.0.tar.gz) = 81691
diff --git a/www/py-httpx2/pkg-descr b/www/py-httpx2/pkg-descr
new file mode 100644
index 000000000000..e822693f3e98
--- /dev/null
+++ b/www/py-httpx2/pkg-descr
@@ -0,0 +1,2 @@
+HTTPX2 is a fully featured HTTP client for Python 3, which provides sync and
+async APIs, and support for both HTTP/1.1 and HTTP/2.