summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-06-02 15:37:07 +0200
committerGitHub <noreply@github.com>2021-06-02 08:37:07 -0500
commit29554d867f2df35d127a7d4c86da0fb98b642437 (patch)
treebe9d1344ff72f38d15d789a486a33bf6ad7d15f9
parent410da48e81f26405ec48b10f4d0e0560477295e7 (diff)
downloadspack-29554d867f2df35d127a7d4c86da0fb98b642437.tar.gz
spack-29554d867f2df35d127a7d4c86da0fb98b642437.tar.bz2
spack-29554d867f2df35d127a7d4c86da0fb98b642437.tar.xz
spack-29554d867f2df35d127a7d4c86da0fb98b642437.zip
py-nilearn: add new package (#24055)
-rw-r--r--var/spack/repos/builtin/packages/py-nilearn/package.py29
1 files changed, 29 insertions, 0 deletions
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')