From f8910c7859132aa2e1cf6a49571effb33e608f47 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Tue, 12 Oct 2021 18:22:00 +0200 Subject: py-nistats: add new package (#26662) * py-nistats: add new package * Update var/spack/repos/builtin/packages/py-nistats/package.py Co-authored-by: Adam J. Stewart * remove `conflicts` * remove test dependencies Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/py-nistats/package.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-nistats/package.py diff --git a/var/spack/repos/builtin/packages/py-nistats/package.py b/var/spack/repos/builtin/packages/py-nistats/package.py new file mode 100644 index 0000000000..332dbfcb7d --- /dev/null +++ b/var/spack/repos/builtin/packages/py-nistats/package.py @@ -0,0 +1,28 @@ +# 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 PyNistats(PythonPackage): + """Modeling and Statistical analysis of fMRI data in Python.""" + + homepage = "https://github.com/nilearn/nistats" + pypi = "nistats/nistats-0.0.1rc0.tar.gz" + + version('0.0.1rc0', sha256='dcc4c4e410f542fd72e02e12b3b6531851bae2680d08ad29658b272587ef2f98') + version('0.0.1b2', sha256='a853149087bafbf1bed12664ed8889a63ff15dde1fb7a9d51e8a094afc8d695d') + + depends_on('python@2.7:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy@1.11:', type=('build', 'run')) + depends_on('py-scipy@0.17:', type=('build', 'run')) + depends_on('py-scikit-learn@0.18:', type=('build', 'run')) + depends_on('py-nibabel@2.0.2:', type=('build', 'run')) + # needs +plotting to avoid ModuleNotFoundError: + # 'nilearn.plotting.js_plotting_utils' when importing nistats.reporting + # Functionality has been incorporated into py-nilearn@0.7: + depends_on('py-nilearn+plotting@0.4:0.6', type=('build', 'run')) + depends_on('py-pandas@0.18:', type=('build', 'run')) -- cgit v1.2.3-70-g09d2