diff --git a/packages/py-norse/package.py b/packages/py-norse/package.py new file mode 100644 index 0000000000000000000000000000000000000000..a211527169ef9d9ad657d09a95cf8bbc92562276 --- /dev/null +++ b/packages/py-norse/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2024 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 import * + + +class PyNorse(PythonPackage): + """A deep learning library for spiking neural networks.""" + + homepage = "https://norse.github.io/norse/" + pypi = "norse/norse-0.0.7.post1.tar.gz" + + version("1.1.0", sha256="3f70b8579251316761f7a950680136029fcd9d92bbcc53531366d088a8aaf0c8") + version("1.0.0", sha256="92f6bd0d97aa519ffcb605a25c4bda1ef1d949de8f87d0450eb1176ee7de69c9") + + depends_on("python@3.8:", when="@1.1:", type=("build", "run")) + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-numpy", type=("build", "run")) + depends_on("py-torch@2.2:", when="@1.1:", type=("build", "run")) + depends_on("py-torch@1.9:", type=("build", "run")) + depends_on("py-torchvision@0.15:", when="@1.1:", type=("build", "run")) + depends_on("py-torchvision@0.10:", type=("build", "run")) + depends_on("py-nir", when="@1.1:", type=("build", "run")) + depends_on("py-nirtorch", when="@1.1:", type=("build", "run"))