git: 686ee90e71f3 - main - www/py-django-ninja: Add py-django-ninja 1.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 09 Sep 2026 14:52:12 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=686ee90e71f36962372e16c1b4e41fabe9eba515

commit 686ee90e71f36962372e16c1b4e41fabe9eba515
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-09 14:33:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-09 14:47:41 +0000

    www/py-django-ninja: Add py-django-ninja 1.7.0
    
    Django Ninja is a web framework for building APIs with Django and Python type
    hints.
    
    Key features:
    - Easy: Designed to be easy to use and intuitive.
    - FAST execution: Very high performance thanks to Pydantic and async support.
    - Fast to code: Type hints and automatic docs lets you focus only on business
      logic.
    - Standards-based: Based on the open standards for APIs: OpenAPI (previously
      known as Swagger) and JSON Schema.
    - Django friendly: (obviously) has good integration with the Django core and
      ORM.
    - Production ready: Used by multiple companies on live projects.
---
 www/Makefile                  |  1 +
 www/py-django-ninja/Makefile  | 25 +++++++++++++++++++++++++
 www/py-django-ninja/distinfo  |  3 +++
 www/py-django-ninja/pkg-descr | 13 +++++++++++++
 4 files changed, 42 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 9e35578107b5..1ecfcc0555b5 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1661,6 +1661,7 @@
     SUBDIR += py-django-mptt
     SUBDIR += py-django-multiselectfield
     SUBDIR += py-django-netfields
+    SUBDIR += py-django-ninja
     SUBDIR += py-django-object-actions
     SUBDIR += py-django-otp
     SUBDIR += py-django-otp-yubikey
diff --git a/www/py-django-ninja/Makefile b/www/py-django-ninja/Makefile
new file mode 100644
index 000000000000..33ea085c44a6
--- /dev/null
+++ b/www/py-django-ninja/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	django-ninja
+PORTVERSION=	1.7.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	django_ninja-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Django Ninja - Fast Django REST framework
+WWW=		https://django-ninja.dev/ \
+		https://github.com/vitalik/django-ninja
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.8<5:devel/py-flit-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django52>=3.1:www/py-django52@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0<3.0.0:devel/py-pydantic2@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-django-ninja/distinfo b/www/py-django-ninja/distinfo
new file mode 100644
index 000000000000..317f606250ee
--- /dev/null
+++ b/www/py-django-ninja/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788499896
+SHA256 (django_ninja-1.7.0.tar.gz) = 7a0ce06c978a42a808d9a9d7ba1cda383df8eea90040cfc232ad10b7d9024e0d
+SIZE (django_ninja-1.7.0.tar.gz) = 2341450
diff --git a/www/py-django-ninja/pkg-descr b/www/py-django-ninja/pkg-descr
new file mode 100644
index 000000000000..cab7e20b39af
--- /dev/null
+++ b/www/py-django-ninja/pkg-descr
@@ -0,0 +1,13 @@
+Django Ninja is a web framework for building APIs with Django and Python type
+hints.
+
+Key features:
+- Easy: Designed to be easy to use and intuitive.
+- FAST execution: Very high performance thanks to Pydantic and async support.
+- Fast to code: Type hints and automatic docs lets you focus only on business
+  logic.
+- Standards-based: Based on the open standards for APIs: OpenAPI (previously
+  known as Swagger) and JSON Schema.
+- Django friendly: (obviously) has good integration with the Django core and
+  ORM.
+- Production ready: Used by multiple companies on live projects.