python-pybind11: add new package (version 2.13.6)
authorAlexandru Ardelean <redacted>
Sun, 15 Mar 2026 14:03:01 +0000 (16:03 +0200)
committerAlexandru Ardelean <redacted>
Mon, 23 Mar 2026 18:23:25 +0000 (20:23 +0200)
pybind11 is a header-only library that exposes C++ types in Python,
used as a build-time dependency by packages like Pillow 12.x.

Uses setuptools as its build backend.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pybind11/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-pybind11/Makefile b/lang/python/python-pybind11/Makefile
new file mode 100644 (file)
index 0000000..2274fe3
--- /dev/null
@@ -0,0 +1,54 @@
+#
+# Copyright (C) 2025 Alexandru Ardelean <ardeleanalex@gmail.com>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-pybind11
+PKG_VERSION:=2.13.6
+PKG_RELEASE:=1
+
+PYPI_NAME:=pybind11
+PKG_HASH:=ba6af10348c12b24e92fa086b39cfba0eff619b61ac77c406167d813b096d39a
+
+PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_HOST_ONLY:=1
+HOST_BUILD_DEPENDS:= \
+       python3/host \
+       python-build/host \
+       python-installer/host \
+       python-setuptools/host \
+       python-wheel/host
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
+include ../python3-package.mk
+include ../python3-host-build.mk
+
+define Package/python3-pybind11
+  SUBMENU:=Python
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=Seamless operability between C++11 and Python
+  URL:=https://github.com/pybind/pybind11
+  DEPENDS:=+python3
+  BUILDONLY:=1
+endef
+
+define Package/python3-pybind11/description
+  pybind11 is a lightweight header-only library that exposes C++ types
+  in Python and vice versa, mainly to create Python bindings of existing
+  C++ code.
+endef
+
+$(eval $(call Py3Package,python3-pybind11))
+$(eval $(call BuildPackage,python3-pybind11))
+$(eval $(call BuildPackage,python3-pybind11-src))
+$(eval $(call HostBuild))
git clone https://git.99rst.org/PROJECT