summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-09-29 15:05:34 +0200
committerGitHub <noreply@github.com>2021-09-29 15:05:34 +0200
commitac29b70d188a5b35970477c42dfcb4a6f783b588 (patch)
tree648247bd767a9da3ae74bfcc19b1ac0ca6a27ea3
parente01947effc222b1e8521cf0162bd6cb17d0ba4f5 (diff)
downloadspack-ac29b70d188a5b35970477c42dfcb4a6f783b588.tar.gz
spack-ac29b70d188a5b35970477c42dfcb4a6f783b588.tar.bz2
spack-ac29b70d188a5b35970477c42dfcb4a6f783b588.tar.xz
spack-ac29b70d188a5b35970477c42dfcb4a6f783b588.zip
py-dipy: add new package (#26331)
-rw-r--r--var/spack/repos/builtin/packages/py-dipy/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-dipy/package.py b/var/spack/repos/builtin/packages/py-dipy/package.py
new file mode 100644
index 0000000000..6f66af3ce8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-dipy/package.py
@@ -0,0 +1,38 @@
+# 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 PyDipy(PythonPackage):
+ """ Diffusion MRI utilities in python.
+
+ DIPY is the paragon 3D/4D+ imaging library in Python. Contains generic
+ methods for spatial normalization, signal processing, machine learning,
+ statistical analysis and visualization of medical images. Additionally, it
+ contains specialized methods for computational anatomy including diffusion,
+ perfusion and structural imaging.
+ """
+
+ homepage = "https://dipy.org/"
+ pypi = "dipy/dipy-1.4.1.tar.gz"
+
+ version('1.4.1', sha256='b4bf830feae751f3f985d54cb71031fc35cea612838320f1f74246692b8a3cc0')
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-cython@0.29:', type=('build'))
+ depends_on('py-numpy@1.12.0:', type=('build', 'run'))
+ depends_on('py-scipy@1.0:', type=('build', 'run'))
+ depends_on('py-nibabel@3.0.0:', type=('build', 'run'))
+ depends_on('py-h5py@2.5.0:', type=('build', 'run'))
+ depends_on('py-packaging@19.0:', type=('build', 'run'))
+ depends_on('py-tqdm@4.30.0:', type=('build', 'run'))
+
+ # Prevent passing --single-version-externally-managed to
+ # setup.py, to avoid
+ # error: option --single-version-externally-managed not recognized
+ def install_args(self, spec, prefix):
+ return ['--prefix={0}'.format(prefix), '--root=/']