git: 9ed20a278da1 - main - www/py-litestar: Add new port

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sun, 30 Nov 2025 12:56:40 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9ed20a278da1cd1370b9f9aa2d35d9db5159f586

commit 9ed20a278da1cd1370b9f9aa2d35d9db5159f586
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2025-11-30 12:54:04 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2025-11-30 12:55:37 +0000

    www/py-litestar: Add new port
    
    Litestar is a powerful, flexible yet opinionated ASGI framework, focused on
    building APIs. It offers high-performance data validation, dependency injection,
    first-class ORM integration, authorization primitives, a rich plugin API,
    middleware, and much more that's needed to get applications up and running.
---
 www/Makefile              |  1 +
 www/py-litestar/Makefile  | 31 +++++++++++++++++++++++++++++++
 www/py-litestar/distinfo  |  3 +++
 www/py-litestar/pkg-descr |  4 ++++
 4 files changed, 39 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 06bb41a275af..ca9d51985ab8 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1875,6 +1875,7 @@
     SUBDIR += py-lia-web
     SUBDIR += py-libsass
     SUBDIR += py-limits
+    SUBDIR += py-litestar
     SUBDIR += py-livereload
     SUBDIR += py-mailman-hyperkitty
     SUBDIR += py-mechanicalsoup
diff --git a/www/py-litestar/Makefile b/www/py-litestar/Makefile
new file mode 100644
index 000000000000..5e63bec8dc29
--- /dev/null
+++ b/www/py-litestar/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	litestar
+DISTVERSION=	2.18.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Production-ready, highly performant, extensible ASGI API Framework
+WWW=		https://litestar.dev/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}anyio>=0:devel/py-anyio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httpx>=0.22:www/py-httpx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}msgspec>=0.18.2:devel/py-msgspec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}multidict>=6.0.2:www/py-multidict@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}polyfactory>=0:devel/py-polyfactory@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}multipart>=0:devel/py-multipart@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=0:textproc/py-rich@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich-click>=0:devel/py-rich-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>=0:devel/py-pydantic2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}uvicorn>=0:www/py-uvicorn@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-litestar/distinfo b/www/py-litestar/distinfo
new file mode 100644
index 000000000000..2cac87ecc70b
--- /dev/null
+++ b/www/py-litestar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1764419124
+SHA256 (litestar-2.18.0.tar.gz) = be8f91813854722b7a2f37cbb57d76977050a96b2427d3c4455d406f0f4fcd50
+SIZE (litestar-2.18.0.tar.gz) = 372890
diff --git a/www/py-litestar/pkg-descr b/www/py-litestar/pkg-descr
new file mode 100644
index 000000000000..0df36e019ce5
--- /dev/null
+++ b/www/py-litestar/pkg-descr
@@ -0,0 +1,4 @@
+Litestar is a powerful, flexible yet opinionated ASGI framework, focused on
+building APIs. It offers high-performance data validation, dependency injection,
+first-class ORM integration, authorization primitives, a rich plugin API,
+middleware, and much more that's needed to get applications up and running.