git: a91246262de4 - main - devel/py-pybind11-stubgen: New port: PEP 561 type stubs generator for pybind11 modules
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jun 2026 05:45:13 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a91246262de4507bda2f6cec39a19c29a375e6fc
commit a91246262de4507bda2f6cec39a19c29a375e6fc
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-21 05:27:40 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-21 05:45:10 +0000
devel/py-pybind11-stubgen: New port: PEP 561 type stubs generator for pybind11 modules
---
devel/Makefile | 1 +
devel/py-pybind11-stubgen/Makefile | 22 ++++++++++++++++++++++
devel/py-pybind11-stubgen/distinfo | 3 +++
devel/py-pybind11-stubgen/pkg-descr | 4 ++++
4 files changed, 30 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index df5528c9f2f7..5ea94de3644a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5722,6 +5722,7 @@
SUBDIR += py-pyasn1-modules
SUBDIR += py-pybase64
SUBDIR += py-pybind11
+ SUBDIR += py-pybind11-stubgen
SUBDIR += py-pybix
SUBDIR += py-pybreaker
SUBDIR += py-pycadf
diff --git a/devel/py-pybind11-stubgen/Makefile b/devel/py-pybind11-stubgen/Makefile
new file mode 100644
index 000000000000..3c9d58e3dc25
--- /dev/null
+++ b/devel/py-pybind11-stubgen/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= pybind11-stubgen
+DISTVERSION= 2.5.5
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= PEP 561 type stubs generator for pybind11 modules
+WWW= https://github.com/pybind/pybind11-stubgen
+
+LICENSE= BSD3CLAUSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES= cmake:indirect python
+USE_PYTHON= pep517 concurrent autoplist pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pybind11-stubgen/distinfo b/devel/py-pybind11-stubgen/distinfo
new file mode 100644
index 000000000000..3f421ccd9028
--- /dev/null
+++ b/devel/py-pybind11-stubgen/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782017879
+SHA256 (pybind11_stubgen-2.5.5.tar.gz) = 758d6d6bbeefc62ad7f78d5e5bbf357ccf6af83cd4504f5f549403f452942708
+SIZE (pybind11_stubgen-2.5.5.tar.gz) = 25031
diff --git a/devel/py-pybind11-stubgen/pkg-descr b/devel/py-pybind11-stubgen/pkg-descr
new file mode 100644
index 000000000000..52cfb93e1791
--- /dev/null
+++ b/devel/py-pybind11-stubgen/pkg-descr
@@ -0,0 +1,4 @@
+pybind11-stubgen generates stubs for python extensions to make them less opaque.
+
+This is to assist static analysis tools and IDE to understand python binary
+extensions.