From d6949b99474a9c9edcc81f7a993e7dc30fb33aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de> Date: Sat, 27 Apr 2024 03:17:41 +0200 Subject: [PATCH] feat(py-norse): add package --- packages/py-norse/package.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/py-norse/package.py diff --git a/packages/py-norse/package.py b/packages/py-norse/package.py new file mode 100644 index 00000000..a2115271 --- /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")) -- GitLab