aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-02-07 20:08:53 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-02-07 21:15:50 +0000
commit754664fa6f890d56e4f06ec21def63e0ee8ae2d6 (patch)
tree9a65284403ee12a1ebfc9a1d4e59800ee5461921
parenteab7a817c000210cbf4e22e3f1dc8d926e72c87d (diff)
www/py-django-stubs-ext: Add py-django-stubs-ext 5.1.2
django-stubs contains type stubs and a custom mypy plugin to provide more precise static types and type inference for Django framework. Django uses some Python "magic" that makes having precise types for some code patterns problematic. This is why we need this project. The final goal is to be able to get precise types for most common patterns.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-django-stubs-ext/Makefile25
-rw-r--r--www/py-django-stubs-ext/distinfo3
-rw-r--r--www/py-django-stubs-ext/pkg-descr5
4 files changed, 34 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 7e99906b4163..2c6710b435cf 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1624,6 +1624,7 @@
SUBDIR += py-django-statici18n
SUBDIR += py-django-staticinline
SUBDIR += py-django-storages
+ SUBDIR += py-django-stubs-ext
SUBDIR += py-django-tables2
SUBDIR += py-django-tagging
SUBDIR += py-django-taggit
diff --git a/www/py-django-stubs-ext/Makefile b/www/py-django-stubs-ext/Makefile
new file mode 100644
index 000000000000..4c58c967fe1e
--- /dev/null
+++ b/www/py-django-stubs-ext/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= django-stubs-ext
+PORTVERSION= 5.1.2
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= django_stubs_ext-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Monkey-patching and extensions for django-stubs
+WWW= https://github.com/typeddjango/django-stubs
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=0:www/py-django42@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-django-stubs-ext/distinfo b/www/py-django-stubs-ext/distinfo
new file mode 100644
index 000000000000..f752dfe2bb69
--- /dev/null
+++ b/www/py-django-stubs-ext/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1738606369
+SHA256 (django_stubs_ext-5.1.2.tar.gz) = 421c0c3025a68e3ab8e16f065fad9ba93335ecefe2dd92a0cff97a665680266c
+SIZE (django_stubs_ext-5.1.2.tar.gz) = 9629
diff --git a/www/py-django-stubs-ext/pkg-descr b/www/py-django-stubs-ext/pkg-descr
new file mode 100644
index 000000000000..544fd8d1f497
--- /dev/null
+++ b/www/py-django-stubs-ext/pkg-descr
@@ -0,0 +1,5 @@
+django-stubs contains type stubs and a custom mypy plugin to provide more
+precise static types and type inference for Django framework. Django uses some
+Python "magic" that makes having precise types for some code patterns
+problematic. This is why we need this project. The final goal is to be able to
+get precise types for most common patterns.