From e14173c42163b3c2cc6aa1da90786a05fc3e4805 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 23:16:28 +0100 Subject: [PATCH v6 21/28] gnu: Add python-dipy. * gnu/packages/python-science.scm (python-dipy): New variable. --- gnu/packages/python-science.scm | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 92c9d0b0b2..4652d36c11 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1492,3 +1492,37 @@ (define-public python-picard (description "This package provides Python code of the Preconditioned ICA for Real Data (Picard) and Picard-O algorithms.") (license license:bsd-3))) + +(define-public python-dipy + (package + (name "python-dipy") + (version "1.5.0") + (source + (origin + ;; Use git to avoid cythonized files + (method git-fetch) + (uri (git-reference + (url "https://github.com/dipy/dipy") + (commit version))) + (sha256 + (base32 + "00s8i0w1n6cp519hw5jc6hwgglqyfqp0zcrbr01gn20km7182s6y")))) + (build-system python-build-system) + (arguments + ;; FIXME: Tests won’t run with error messages like this: + ;; E ImportError: cannot import name 'vector_fields' from partially + ;; initialized module 'dipy.align' (most likely due to a circular import) + `(#:tests? #f)) + (propagated-inputs + (list python-numpy python-scipy python-nibabel python-h5py + python-packaging python-tqdm)) + (native-inputs + (list python-pytest python-cython)) + (home-page "https://dipy.org") + (synopsis "Diffusion MRI utilities in python") + (description "DIPY is a 3D/4D+ imaging library in Python. It 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.") + (license license:bsd-3))) -- 2.36.1