summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Richardson <chris@bpi.cam.ac.uk>2023-07-07 17:02:45 +0100
committerGitHub <noreply@github.com>2023-07-07 12:02:45 -0400
commite8e6d69af55061e5a8cf2a12dee8067cb7ade12d (patch)
treed84fe098f1bdff96367933a9ee2f82faadad0a01
parent050d8df5a581966e1d30e0db680ff6f0c1a8dd8f (diff)
downloadspack-e8e6d69af55061e5a8cf2a12dee8067cb7ade12d.tar.gz
spack-e8e6d69af55061e5a8cf2a12dee8067cb7ade12d.tar.bz2
spack-e8e6d69af55061e5a8cf2a12dee8067cb7ade12d.tar.xz
spack-e8e6d69af55061e5a8cf2a12dee8067cb7ade12d.zip
New package: py-nanobind (#38327)
* initial commit of nanobind package * style fixes * Update package.py Typo * addressed PR comments * add v1.4.0 * Update var/spack/repos/builtin/packages/py-nanobind/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: Matthew Archer <ma595@cam.ac.uk> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/py-nanobind/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-nanobind/package.py b/var/spack/repos/builtin/packages/py-nanobind/package.py
new file mode 100644
index 0000000000..de2a1c7cc7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-nanobind/package.py
@@ -0,0 +1,34 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PyNanobind(PythonPackage):
+ """nanobind -- Seamless operability between C++11 and Python.
+
+ 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.
+ """
+
+ homepage = "https://nanobind.readthedocs.io"
+ url = "https://github.com/wjakob/nanobind/archive/refs/tags/v1.2.0.tar.gz"
+ git = "https://github.com/wjakob/nanobind.git"
+
+ maintainers("ma595")
+
+ version("master", branch="master", submodules=True)
+ version("1.4.0", tag="v1.4.0", submodules=True)
+ version("1.2.0", tag="v1.2.0", submodules=True)
+
+ depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-setuptools@42:", type="build")
+ depends_on("py-scikit-build", type="build")
+
+ depends_on("py-cmake@3.17:", type="build")
+ depends_on("py-ninja", type="build")