git: b522ccb85e88 - main - math/py-pandas-stubs: New port: Type annotations for pandas

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

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

commit b522ccb85e884f021e00c00926eef2d036024216
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-29 16:18:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-29 16:21:16 +0000

    math/py-pandas-stubs: New port: Type annotations for pandas
---
 math/Makefile                  |  1 +
 math/py-pandas-stubs/Makefile  | 24 ++++++++++++++++++++++++
 math/py-pandas-stubs/distinfo  |  3 +++
 math/py-pandas-stubs/pkg-descr |  4 ++++
 4 files changed, 32 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index aaf13c5c7a21..b5bb5c3e9154 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1082,6 +1082,7 @@
     SUBDIR += py-osqp
     SUBDIR += py-pandas
     SUBDIR += py-pandas-datareader
+    SUBDIR += py-pandas-stubs
     SUBDIR += py-patsy
     SUBDIR += py-pcodec
     SUBDIR += py-pdal
diff --git a/math/py-pandas-stubs/Makefile b/math/py-pandas-stubs/Makefile
new file mode 100644
index 000000000000..8410f8e3390f
--- /dev/null
+++ b/math/py-pandas-stubs/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pandas-stubs
+DISTVERSION=	3.0.3.260530
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Type annotations for pandas
+WWW=		https://github.com/pandas-dev/pandas-stubs
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.23.5:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}types-pytz>=2022.1.1:devel/py-types-pytz@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/py-pandas-stubs/distinfo b/math/py-pandas-stubs/distinfo
new file mode 100644
index 000000000000..70bbbf463ef9
--- /dev/null
+++ b/math/py-pandas-stubs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782748676
+SHA256 (pandas_stubs-3.0.3.260530.tar.gz) = d1efe47b2e5a312c047d7feabec5cb7a55365747983420077e9fcbe9ab74f714
+SIZE (pandas_stubs-3.0.3.260530.tar.gz) = 113183
diff --git a/math/py-pandas-stubs/pkg-descr b/math/py-pandas-stubs/pkg-descr
new file mode 100644
index 000000000000..a9aff03a8c22
--- /dev/null
+++ b/math/py-pandas-stubs/pkg-descr
@@ -0,0 +1,4 @@
+pandas-stubs provides external type annotations for the pandas library.
+
+These stubs are used with static type checkers such as mypy and pyright to
+check pandas code without runtime overhead.