From 29554d867f2df35d127a7d4c86da0fb98b642437 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Wed, 2 Jun 2021 15:37:07 +0200 Subject: [PATCH] py-nilearn: add new package (#24055) --- .../builtin/packages/py-nilearn/package.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-nilearn/package.py diff --git a/var/spack/repos/builtin/packages/py-nilearn/package.py b/var/spack/repos/builtin/packages/py-nilearn/package.py new file mode 100644 index 0000000000..1402d23646 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-nilearn/package.py @@ -0,0 +1,29 @@ +# 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) + +from spack import * + + +class PyNilearn(PythonPackage): + """Statistical learning for neuroimaging in Python.""" + + homepage = "http://nilearn.github.io/" + pypi = "nilearn/nilearn-0.7.1.tar.gz" + + version('0.7.1', sha256='8b1409a5e1f0f6d1a1f02555c2f11115a2364f45f1e57bcb5fb3c9ea11f346fa') + + depends_on('python@3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + + variant('plotting', default=False, description='Enable plotting functionalities') + + depends_on('py-numpy@1.11:', type=('build', 'run')) + depends_on('py-scipy@0.19:', type=('build', 'run')) + depends_on('py-scikit-learn@0.19:', type=('build', 'run')) + depends_on('py-joblib@0.12:', type=('build', 'run')) + depends_on('py-nibabel@2.0.2:', type=('build', 'run')) + depends_on('py-pandas@0.18.0:', type=('build', 'run')) + depends_on('py-requests@2:', type=('build', 'run')) + depends_on('py-matplotlib@2.0:', type=('build', 'run'), when='+plotting')