git: 37629653c395 - main - www/py-django-timezone-field: Update to 4.2.3

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Tue, 18 Jan 2022 18:19:47 UTC
The branch main has been updated by kai:

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

commit 37629653c395741857e6cd3d5612db82d2d2bb12
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-01-18 17:44:40 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-01-18 18:18:09 +0000

    www/py-django-timezone-field: Update to 4.2.3
    
    * Introduce new default option REST which adds support for field
      serialization.
    
    Changelog:
    
    https://github.com/mfogel/django-timezone-field/compare/4.1.2...4.2.3
    
    MFH:            2022Q1
---
 www/py-django-timezone-field/Makefile | 11 +++++++++--
 www/py-django-timezone-field/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/www/py-django-timezone-field/Makefile b/www/py-django-timezone-field/Makefile
index 3b10c537aade..cabf992d0359 100644
--- a/www/py-django-timezone-field/Makefile
+++ b/www/py-django-timezone-field/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	django-timezone-field
-DISTVERSION=	4.1.2
+DISTVERSION=	4.2.3
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,7 +10,7 @@ COMMENT=	Provides database and form fields for pytz timezone objects for Django
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django22>=1.11:www/py-django22@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django22>=2.2:www/py-django22@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
 
 USES=		python:3.5+
@@ -20,4 +20,11 @@ NO_ARCH=		yes
 CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}dj31-django-timezone-field \
 			${PYTHON_PKGNAMEPREFIX}dj32-django-timezone-field
 
+OPTIONS_DEFINE=		REST
+OPTIONS_DEFAULT=	REST
+
+REST_DESC=	Support for field serialization via REST
+
+REST_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}djangorestframework>=3.0.0,1:www/py-djangorestframework@${PY_FLAVOR}
+
 .include <bsd.port.mk>
diff --git a/www/py-django-timezone-field/distinfo b/www/py-django-timezone-field/distinfo
index aa1cc15ade0e..2f7295a0948b 100644
--- a/www/py-django-timezone-field/distinfo
+++ b/www/py-django-timezone-field/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1616796675
-SHA256 (django-timezone-field-4.1.2.tar.gz) = cffac62452d060e365938aa9c9f7b72d70d8b26b9c60243bce227b35abd1b9df
-SIZE (django-timezone-field-4.1.2.tar.gz) = 8419
+TIMESTAMP = 1642506738
+SHA256 (django-timezone-field-4.2.3.tar.gz) = 5dd5bd9249382bef8847d3e7e4c32b7be182a4b538f354130d1252ed228892f8
+SIZE (django-timezone-field-4.2.3.tar.gz) = 8347