py-nilearn: add new package (#24055)

This commit is contained in:
Manuela Kuhn 2021-06-02 15:37:07 +02:00 committed by GitHub
parent 410da48e81
commit 29554d867f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')