diff --git a/www/py-django-timezone-field/Makefile b/www/py-django-timezone-field/Makefile index 77a3e19c2d47..a22f6014f907 100644 --- a/www/py-django-timezone-field/Makefile +++ b/www/py-django-timezone-field/Makefile @@ -1,31 +1,30 @@ PORTNAME= django-timezone-field -DISTVERSION= 5.1 +DISTVERSION= 6.0.1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= django_timezone_field-${DISTVERSION} MAINTAINER= kai@FreeBSD.org COMMENT= Provides database and form fields for pytz timezone objects for Django WWW= https://github.com/mfogel/django-timezone-field LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR} USES= python USE_PYTHON= autoplist pep517 NO_ARCH= yes CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME} .include .if ${PYTHON_REL} < 30900 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.zoneinfo>=0.2.1<0.3.0:devel/py-backports.zoneinfo@${PY_FLAVOR} .endif .include diff --git a/www/py-django-timezone-field/distinfo b/www/py-django-timezone-field/distinfo index d2242caf5e48..3a0f44384d78 100644 --- a/www/py-django-timezone-field/distinfo +++ b/www/py-django-timezone-field/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1687762789 -SHA256 (django_timezone_field-5.1.tar.gz) = 73fc49519273cd5da1c7f16abc04a4bcad87b00cc02968d0d384c0fecf9a8a86 -SIZE (django_timezone_field-5.1.tar.gz) = 11525 +TIMESTAMP = 1695271112 +SHA256 (django_timezone_field-6.0.1.tar.gz) = 916d0fd924443462f099f02122cc38d6a6e901ea17f1206c343836199df8bc49 +SIZE (django_timezone_field-6.0.1.tar.gz) = 12190 diff --git a/www/py-django-timezone-field/files/patch-timezone__field_backends_zoneinfo.py b/www/py-django-timezone-field/files/patch-timezone__field_backends_zoneinfo.py new file mode 100644 index 000000000000..e9946f5b270c --- /dev/null +++ b/www/py-django-timezone-field/files/patch-timezone__field_backends_zoneinfo.py @@ -0,0 +1,16 @@ +Remove the "Factory" timezone as it causes following error if the system +zoneinfo data is used: + +ValueError: Invalid STD format in b'0' + +--- timezone_field/backends/zoneinfo.py.orig 2023-09-09 10:35:09 UTC ++++ timezone_field/backends/zoneinfo.py +@@ -10,6 +10,8 @@ class ZoneInfoBackend(TimeZoneBackend): + utc_tzobj = zoneinfo.ZoneInfo("UTC") + all_tzstrs = zoneinfo.available_timezones() + base_tzstrs = zoneinfo.available_timezones() ++ all_tzstrs.discard("Factory") ++ base_tzstrs.discard("Factory") + + def is_tzobj(self, value): + return isinstance(value, zoneinfo.ZoneInfo)