diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-06-29 19:42:24 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2025-06-29 19:46:45 +0800 |
commit | 6b47ec497548fb2ef076500ae731cad3157e8244 (patch) | |
tree | ee34d785e9418bf1d0dc33e59ca691d597b34cfe | |
parent | www/rubygem-faye: Update to 1.4.1 (diff) |
www/py-dj52-django-stubs-ext: Convert to normal port
This is the current practice of django ports.
Approved by: portmgr (blanket)
With hat: python
-rw-r--r-- | www/py-dj52-django-stubs-ext/Makefile | 23 | ||||
-rw-r--r-- | www/py-dj52-django-stubs-ext/distinfo | 3 | ||||
-rw-r--r-- | www/py-dj52-django-stubs-ext/pkg-descr | 5 |
3 files changed, 26 insertions, 5 deletions
diff --git a/www/py-dj52-django-stubs-ext/Makefile b/www/py-dj52-django-stubs-ext/Makefile index a3127930ff2d..00873022489d 100644 --- a/www/py-dj52-django-stubs-ext/Makefile +++ b/www/py-dj52-django-stubs-ext/Makefile @@ -1,12 +1,25 @@ PORTNAME= django-stubs-ext -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj${DJANGO_VERSION}- +PORTVERSION= 5.2.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52- +DISTNAME= django_stubs_ext-${PORTVERSION} MAINTAINER= dtxdf@FreeBSD.org +COMMENT= Monkey-patching and extensions for django-stubs +WWW= https://github.com/typeddjango/django-stubs -CONFLICTS_INSTALL= www/py-django-stubs-ext +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md -MASTERDIR= ${.CURDIR}/../py-django-stubs-ext +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django52>=0:www/py-django52@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} -DJANGO_VERSION= 52 +USES= python:3.10+ +USE_PYTHON= autoplist concurrent pep517 -.include "${MASTERDIR}/Makefile" +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/py-dj52-django-stubs-ext/distinfo b/www/py-dj52-django-stubs-ext/distinfo new file mode 100644 index 000000000000..185cb1c2360a --- /dev/null +++ b/www/py-dj52-django-stubs-ext/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1745936230 +SHA256 (django_stubs_ext-5.2.0.tar.gz) = 00c4ae307b538f5643af761a914c3f8e4e3f25f4e7c6d7098f1906c0d8f2aac9 +SIZE (django_stubs_ext-5.2.0.tar.gz) = 9618 diff --git a/www/py-dj52-django-stubs-ext/pkg-descr b/www/py-dj52-django-stubs-ext/pkg-descr new file mode 100644 index 000000000000..544fd8d1f497 --- /dev/null +++ b/www/py-dj52-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. |