[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/32: gnu: Add python-nibabel.

From: guix-commits
Subject: 04/32: gnu: Add python-nibabel.
Date: Wed, 16 Feb 2022 11:39:29 -0500 (EST)

nckx pushed a commit to branch wip-python-mne
in repository guix.

commit bc17ffc9f356b51f8cfca182608d2b516ce9e207
Author: Vivien Kraus <>
AuthorDate: Thu Jan 20 17:38:47 2022 +0100

    gnu: Add python-nibabel.
    * gnu/packages/python-science.scm (python-nibabel): New variable.
 gnu/packages/python-science.scm | 51 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 78c84f4fe6..c659b004ed 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -55,6 +55,7 @@
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages statistics)
   #:use-module (gnu packages time)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -1104,3 +1105,53 @@ European Data Format}.  @dfn{BDF} is the
     (synopsis "I/O support for EEGLAB files in Python")
     (description "This project provides I/O support for EEGLAB files in 
     (license license:bsd-3)))
+(define-public python-nibabel
+  (package
+    (name "python-nibabel")
+    (version "3.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "nibabel" version))
+       (sha256
+        (base32
+         "17n23w7y0hiz2vma5si7wy184d59bp14zd8nr6hi203ldd1gjbsd"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "-m" "pytest" "--pyargs" "nibabel")))))))
+    (propagated-inputs (list python-numpy python-packaging))
+    (native-inputs (list python-coverage
+                         python-gitpython
+                         python-pytest
+                         python-pytest-cov
+                         python-pytest-doctestplus
+                         python-twine))
+    (home-page "";)
+    (synopsis "Access a multitude of neuroimaging data formats")
+    (description
+     "This package provides read +/- write access to some common
+medical and neuroimaging file formats, including:
+ANALYZE} (plain, SPM99, SPM2 and later),
+@url{, GIFTI},
+@url{, NIfTI1},
+@url{, NIfTI2},
+@url{, CIFTI-2},
+MINC2}, @url{, AFNI
+@url{, MGH} and
+@url{, ECAT} as well as Philips
+PAR/REC.  We can read and write @url{,
+FreeSurfer} geometry, annotation and morphometry files.  There is some very
+limited support for @url{, DICOM}.  NiBabel is the
+successor of @url{, PyNIfTI}.")
+    (license license:expat)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]