summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/nest/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/nest/package.py')
-rw-r--r--var/spack/repos/builtin/packages/nest/package.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/nest/package.py b/var/spack/repos/builtin/packages/nest/package.py
index 6524931f5e..7b7658028f 100644
--- a/var/spack/repos/builtin/packages/nest/package.py
+++ b/var/spack/repos/builtin/packages/nest/package.py
@@ -1,4 +1,4 @@
-# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Copyright 2013-2021 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)
@@ -14,7 +14,10 @@ class Nest(CMakePackage):
homepage = "http://www.nest-simulator.org"
url = "https://github.com/nest/nest-simulator/releases/download/v2.12.0/nest-2.12.0.tar.gz"
+ git = "https://github.com/nest/nest-simulator.git"
+ version('master', branch='master')
+ version('2.20.0', sha256='40e33187c22d6e843d80095b221fa7fd5ebe4dbc0116765a91fc5c425dd0eca4')
version('2.14.0', sha256='d6316d6c9153100a3220488abfa738958c4b65bf2622bd15540e4aa81e79f17f')
version('2.12.0', sha256='bac578f38bb0621618ee9d5f2f1febfee60cddc000ff32e51a5f5470bb3df40d')
version('2.10.0', sha256='2b6fc562cd6362e812d94bb742562a5a685fb1c7e08403765dbe123d59b0996c')
@@ -22,9 +25,11 @@ class Nest(CMakePackage):
version('2.6.0', sha256='5fe4924bc57d0c7dd820aa371de935eedf7e813832c0eee2c976b33c9a8db4cf')
version('2.4.2', sha256='8f86e58c1a12b733ffabd8b0400326e5a3494a458149ea8ebe9f19674d05b91b')
- variant('python', default=True,
+ maintainers = ['ikitayama']
+
+ variant('python', default=False,
description='Build the PyNest interface')
- variant('mpi', default=True,
+ variant('mpi', default=False,
description='Build with MPI bindings')
variant('openmp', default=True,
description='"Enable OpenMP support"')
@@ -47,6 +52,7 @@ class Nest(CMakePackage):
depends_on('python@2.6:', when='+python', type=('build', 'run'))
depends_on('py-numpy', when='+python', type=('build', 'run'))
+ depends_on('py-scipy', when='+python', type=('run'))
depends_on('py-cython@0.19.2:', when='+python', type='build')
depends_on('py-nose', when='+python', type='test')
depends_on('py-setuptools', when='+python', type='build')
@@ -102,9 +108,8 @@ class Nest(CMakePackage):
else:
args.append('-Dwith-mpi=OFF')
- if '+python':
- version = self.spec['python'].version[0]
- args.append('-Dwith-python={0}'.format(version))
+ if '+python' in self.spec:
+ args.append('-Dwith-python=ON')
args.append('-Dcythonize-pynest=' + self.spec['py-cython'].prefix)
else:
args.append('-Dwith-python=OFF')