git: e2acfab80364 - main - www/py-dj40-django-rich: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 17 Sep 2022 10:50:12 UTC
The branch main has been updated by kai:

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

commit e2acfab803648034112e51669ddeae743bdf417c
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-09-17 10:41:32 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-09-17 10:41:32 +0000

    www/py-dj40-django-rich: New port
    
    This package provides extensions for using Rich with the Django
    framework.
    
    These extensions consist of the following subclasses:
    
    * django_rich.management.RichCommand:
      Subclass of Django's BaseCommand class that sets its self.console
      to a Rich console.
    
    * django_rich.test.RichRunner:
      Subclass of Django's DiscoverRunner with colorized outputs and
      nice traceback rendering.
---
 www/Makefile                      |  1 +
 www/py-dj40-django-rich/Makefile  | 24 ++++++++++++++++++++++++
 www/py-dj40-django-rich/distinfo  |  3 +++
 www/py-dj40-django-rich/pkg-descr | 11 +++++++++++
 4 files changed, 39 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 223ba4a5800e..aa543da8da24 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1453,6 +1453,7 @@
     SUBDIR += py-dj40-django-mptt
     SUBDIR += py-dj40-django-prometheus
     SUBDIR += py-dj40-django-redis
+    SUBDIR += py-dj40-django-rich
     SUBDIR += py-dj40-django-tables2
     SUBDIR += py-dj40-django-taggit
     SUBDIR += py-dj40-django-timezone-field
diff --git a/www/py-dj40-django-rich/Makefile b/www/py-dj40-django-rich/Makefile
new file mode 100644
index 000000000000..57b0627288fe
--- /dev/null
+++ b/www/py-dj40-django-rich/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	django-rich
+PORTVERSION=	1.4.0
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}dj40-
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Extensions for using Rich with Django
+WWW=		https://github.com/adamchainz/django-rich
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django40>=3.2:www/py-django40@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=10.0.0:textproc/py-rich@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist distutils
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH=		yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj40-django-rich/distinfo b/www/py-dj40-django-rich/distinfo
new file mode 100644
index 000000000000..1f88129e0fba
--- /dev/null
+++ b/www/py-dj40-django-rich/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1657859577
+SHA256 (django-rich-1.4.0.tar.gz) = 10a5d9e9b62228b683d51584e4c2a5aa9f838176364a90c8cd79688aadca9f4c
+SIZE (django-rich-1.4.0.tar.gz) = 58751
diff --git a/www/py-dj40-django-rich/pkg-descr b/www/py-dj40-django-rich/pkg-descr
new file mode 100644
index 000000000000..19b9613667df
--- /dev/null
+++ b/www/py-dj40-django-rich/pkg-descr
@@ -0,0 +1,11 @@
+This package provides Extensions for using Rich with the Django framework.
+
+These extensions consist of the following subclasses:
+
+* django_rich.management.RichCommand:
+  Subclass of Django’s BaseCommand class that sets its self.console to a
+  Rich Console.
+
+* django_rich.test.RichRunner:
+  Subclass of Django's DiscoverRunner with colourized outputs and nice
+  traceback rendering.