git: 94f5c2005081 - main - devel/py-types-ujson: new port, typing stubs for ujson

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Tue, 28 Jan 2025 17:07:39 UTC
The branch main has been updated by thierry:

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

commit 94f5c2005081204d650bc37f90ee5275926eb482
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2025-01-28 16:59:34 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2025-01-28 17:07:35 +0000

    devel/py-types-ujson: new port, typing stubs for ujson
---
 devel/py-types-ujson/Makefile  | 21 +++++++++++++++++++++
 devel/py-types-ujson/distinfo  |  3 +++
 devel/py-types-ujson/pkg-descr |  3 +++
 3 files changed, 27 insertions(+)

diff --git a/devel/py-types-ujson/Makefile b/devel/py-types-ujson/Makefile
new file mode 100644
index 000000000000..e6f0d07ea44d
--- /dev/null
+++ b/devel/py-types-ujson/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	types-ujson
+DISTVERSION=	5.10.0.20240515
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	Typing stubs for ujson
+WWW=		https://github.com/python/typeshed
+
+LICENSE=	APACHE20
+
+USES=		python
+USE_PYTHON=	distutils
+NO_ARCH=	yes
+
+PLIST_FILES=	%%PYTHON_SITELIBDIR%%/ujson-stubs/METADATA.toml	\
+		%%PYTHON_SITELIBDIR%%/ujson-stubs/__init__.pyi	\
+		%%PYTHON_SITELIBDIR%%/ujson-stubs/py.typed
+
+.include <bsd.port.mk>
diff --git a/devel/py-types-ujson/distinfo b/devel/py-types-ujson/distinfo
new file mode 100644
index 000000000000..c9b22d941483
--- /dev/null
+++ b/devel/py-types-ujson/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1737924152
+SHA256 (types-ujson-5.10.0.20240515.tar.gz) = ceae7127f0dafe4af5dd0ecf98ee13e9d75951ef963b5c5a9b7ea92e0d71f0d7
+SIZE (types-ujson-5.10.0.20240515.tar.gz) = 3571
diff --git a/devel/py-types-ujson/pkg-descr b/devel/py-types-ujson/pkg-descr
new file mode 100644
index 000000000000..d111cdd9dac8
--- /dev/null
+++ b/devel/py-types-ujson/pkg-descr
@@ -0,0 +1,3 @@
+This is a PEP 561 type stub package for the `ujson` package.
+It can be used by type-checking tools like mypy, pyright, pytype,
+PyCharm, etc. to check code that uses `ujson`.