summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-11-03 16:26:30 +0100
committerGitHub <noreply@github.com>2021-11-03 10:26:30 -0500
commit5c13c5892b872ed9aa32c0acf6f9df39cb2b79cc (patch)
tree53bf7c7f68b3797e08bffd6bf22de3c8f32f2d89 /var
parent67cd92e6a32a1962f1cfde331a509ea968ac246e (diff)
downloadspack-5c13c5892b872ed9aa32c0acf6f9df39cb2b79cc.tar.gz
spack-5c13c5892b872ed9aa32c0acf6f9df39cb2b79cc.tar.bz2
spack-5c13c5892b872ed9aa32c0acf6f9df39cb2b79cc.tar.xz
spack-5c13c5892b872ed9aa32c0acf6f9df39cb2b79cc.zip
py-nibetaseries: add new package (#27187)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-nibetaseries/package.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-nibetaseries/package.py b/var/spack/repos/builtin/packages/py-nibetaseries/package.py
new file mode 100644
index 0000000000..34684796aa
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-nibetaseries/package.py
@@ -0,0 +1,59 @@
+# 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 PyNibetaseries(PythonPackage):
+ """BetaSeries Correlations implemented in Nipype."""
+
+ homepage = "https://github.com/HBClab/NiBetaSeries"
+ pypi = "nibetaseries/nibetaseries-0.6.0.tar.gz"
+ git = "https://github.com/HBClab/NiBetaSeries.git"
+
+ version('master', branch='master')
+ version('0.6.0', sha256='afddea1bf9b9de4ae446a5d9d2a56bdc88a5a9588bec5ecd3c8ac978fe416515')
+
+ depends_on('python@3.5:', type=('build', 'run'))
+ depends_on('py-setuptools@40.8:', type='build')
+ depends_on('py-cython', type='build')
+
+ with when('@master'):
+ depends_on('py-nipype@1.5.1:', type=('build', 'run'))
+ depends_on('py-pybids@0.11.1:', type=('build', 'run'))
+ depends_on('py-nibabel@3:', type=('build', 'run'))
+ depends_on('py-nistats@0.0.1b2', type=('build', 'run'))
+ depends_on('py-niworkflows@1.3.1:1.3', type=('build', 'run'))
+ depends_on('py-nilearn', type=('build', 'run'))
+ depends_on('py-pandas', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-duecredit', type=('build', 'run'))
+ depends_on('py-scikit-learn@0.22.0:0.22', type=('build', 'run'))
+ depends_on('py-matplotlib', type=('build', 'run'))
+ depends_on('py-mne', type=('build', 'run'))
+ # pypiwin32; platform_system=="Windows"
+
+ with when('@:0.6'):
+ depends_on('py-nipype@1.4.2:1.4', type=('build', 'run'))
+ depends_on('py-pybids@0.9.3:0.9', type=('build', 'run'))
+ depends_on('py-nibabel@2.4.0:2.4', type=('build', 'run'))
+ depends_on('py-nistats@0.0.1b2', type=('build', 'run'))
+ depends_on('py-nilearn@0.4.2:0.4', type=('build', 'run'))
+ depends_on('py-pandas@0.24.0:0.24', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-niworkflows@1.0.2:1.0', type=('build', 'run'))
+ depends_on('py-duecredit@0.6.4:0.6', type=('build', 'run'))
+ depends_on('py-scikit-learn@0.19.2:0.19', type=('build', 'run'))
+ depends_on('py-matplotlib@2.2.4:2.2', type=('build', 'run'))
+ depends_on('py-mne@0.18.1:0.18', type=('build', 'run'))
+ # pypiwin32; platform_system=="Windows"
+
+ @run_after('install')
+ def patch_bin(self):
+ # pkg_resources fails to find the dependencies, resulting in errors
+ # like: pkg_resources.DistributionNotFound: The 'sklearn' distribution
+ # was not found and is required by nilearn
+ filter_file("__requires__ = 'nibetaseries==0.post1+gaa7d2ea'", "",
+ join_path(self.prefix.bin, 'nibs'), string=True)