BSD Ports

devel/py-nanobind 3.0.1 NetBSD

Tiny and efficient C++/Python bindings

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Port added
Last update
Commit
7fde9d0a3b
License
modified-bsd
Categories
devel, python
Package size
241.9 KiB, 1280.4 KiB installed

Description

nanobind is a small binding library that exposes C++ types in Python and vice versa. It is reminiscent of Boost.Python and pybind11 and uses near-identical syntax. In contrast to these existing tools, nanobind is more efficient: bindings compile in a shorter amount of time, produce smaller binaries, and have better runtime performance.

In the other systems

The newest version among them is 3.1.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/py-nanobind3.0.1 behind since 2026-09-21none known-[email protected]2026-09-29
FreeBSDdevel/py-nanobind3.1.0 newestnone known-[email protected]2026-09-21
DragonFlydevel/py-nanobind2.4.0 behind since 2026-07-14none known-[email protected]-
MidnightBSDdevel/py-nanobind2.13.0 behind since 2026-09-04no data-[email protected]2026-07-14
HardenedBSDdevel/py-nanobind3.1.0 newestno data-[email protected]-
GhostBSDdevel/py-nanobind2.13.0 behind since 2026-09-04no data-[email protected]-

Compare across BSDs

Version history 2

  1. 3.1.0 7fde9d0a3b
  2. 3.0.1 8f90cbd6ac

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkgin install py311-nanobind

From pkgsrc:

cd /usr/pkgsrc/devel/py-nanobind && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_643.0.1
NetBSD 10.1 aarch64-
SmartOS / illumos x86_643.1.0
macOS 15 arm643.1.0

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-nanobind-3.0.1, py313-nanobind-3.0.1, py314-nanobind-3.0.1

Commit history 2

DateCommitCreditsLog message
7fde9d0a3b adam py-nanobind: updated to 3.1.0
3.1.0 (Sep 28, 2026) - Python subclasses can now combine one nanobind base with additional :ref:`Python mixins <python_mixins>`, including cooperative ``super()`` calls on CPython and PyPy. Inheriting from multiple nanobind bases remains unsupported. - The low-level instance API gained :cpp:func:`nb::inst_python_derived() <inst_python_derived>`, which reports whether a nanobind instance belongs to a Python subclass of the bound type. - Added new low-level functions :cpp:func:`nb::keep_alive_obj() <keep_alive_obj>` and :cpp:func:`nb::keep_alive_cb() <keep_alive_cb>`, which expose the mechanism behind the :cpp:class:`nb::keep_alive <keep_alive>` annotation. - The new function :cpp:func:`intrusive_counter::ref_count()` returns the …
8f90cbd6ac adam py-nanobind: added version 3.0.1
nanobind is a small binding library that exposes C++ types in Python and vice versa. It is reminiscent of Boost.Python and pybind11 and uses near-identical syntax. In contrast to these existing tools, nanobind is more efficient: bindings compile in a shorter amount of time, produce smaller binaries, and have better runtime performance.