git: 3a7227a7c2f3 - main - devel/py-types-pytz: New port: Typing stubs for pytz

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 29 Jun 2026 16:21:20 UTC
The branch main has been updated by yuri:

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

commit 3a7227a7c2f3eff1f6f9683dc87ff2c720c0c895
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-29 15:15:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-29 16:21:15 +0000

    devel/py-types-pytz: New port: Typing stubs for pytz
---
 devel/Makefile                                 |  1 +
 devel/py-types-pytz/Makefile                   | 20 ++++++++++++++++++++
 devel/py-types-pytz/distinfo                   |  3 +++
 devel/py-types-pytz/files/patch-pyproject.toml | 20 ++++++++++++++++++++
 devel/py-types-pytz/pkg-descr                  |  4 ++++
 5 files changed, 48 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 4cbcd14f0c88..c1708838f599 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6326,6 +6326,7 @@
     SUBDIR += py-types-psutil
     SUBDIR += py-types-psycopg2
     SUBDIR += py-types-python-dateutil
+    SUBDIR += py-types-pytz
     SUBDIR += py-types-pyyaml
     SUBDIR += py-types-requests
     SUBDIR += py-types-retry
diff --git a/devel/py-types-pytz/Makefile b/devel/py-types-pytz/Makefile
new file mode 100644
index 000000000000..5efc9232341e
--- /dev/null
+++ b/devel/py-types-pytz/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	types-pytz
+DISTVERSION=	2025.2.0.20251108
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Typing stubs for pytz
+WWW=		https://github.com/python/typeshed
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-types-pytz/distinfo b/devel/py-types-pytz/distinfo
new file mode 100644
index 000000000000..bdf164b2f477
--- /dev/null
+++ b/devel/py-types-pytz/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1763953677
+SHA256 (types_pytz-2025.2.0.20251108.tar.gz) = fca87917836ae843f07129567b74c1929f1870610681b4c92cb86a3df5817bdb
+SIZE (types_pytz-2025.2.0.20251108.tar.gz) = 10961
diff --git a/devel/py-types-pytz/files/patch-pyproject.toml b/devel/py-types-pytz/files/patch-pyproject.toml
new file mode 100644
index 000000000000..3e4c01bb8ff2
--- /dev/null
+++ b/devel/py-types-pytz/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig	2026-06-29 15:09:53 UTC
++++ pyproject.toml
+@@ -5,8 +5,6 @@ version = "2025.2.0.20251108"
+ [project]
+ name = "types-pytz"
+ version = "2025.2.0.20251108"
+-license = "Apache-2.0"
+-license-files = ["LICENSE"]
+ description = "Typing stubs for pytz"
+ readme = { text = """\
+ ## Typing stubs for pytz
+@@ -46,5 +44,7 @@ dependencies = []
+ "Chat" = "https://gitter.im/python/typing"
+ 
+ [tool.setuptools]
+-packages = ['pytz-stubs']
+ include-package-data = false
++
++[tool.setuptools.packages.find]
++include = ['pytz-stubs']
diff --git a/devel/py-types-pytz/pkg-descr b/devel/py-types-pytz/pkg-descr
new file mode 100644
index 000000000000..668239c51a48
--- /dev/null
+++ b/devel/py-types-pytz/pkg-descr
@@ -0,0 +1,4 @@
+pytz brings the Olson tz database into Python. This library allows accurate and
+cross platform timezone calculations. It also solves the issue of ambiguous
+times at the end of daylight savings, which you can read more about in the
+Python Library Reference (datetime.tzinfo).