1
0

Accepting request 718908 from home:TheBlackCat:branches:devel:languages:python:numeric

Tool to access multiple neuroimaging data formats

OBS-URL: https://build.opensuse.org/request/show/718908
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-nibabel?expand=0&rev=1
This commit is contained in:
Todd R 2019-07-26 14:53:49 +00:00 committed by Git OBS Bridge
commit 5945d807c9
5 changed files with 111 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
nibabel-2.4.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f165ff1cb4464902d6594eb2694e2cfb6f8b9fe233b856c976c3cff623ee0e17
size 4591906

4
python-nibabel.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Jul 26 14:21:33 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Initial version

80
python-nibabel.spec Normal file
View File

@ -0,0 +1,80 @@
#
# spec file for package python-nibabel
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-nibabel
Version: 2.4.1
Release: 0
License: MIT
Summary: Tool to access multiple neuroimaging data formats
Url: http://nipy.org/nibabel
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/n/nibabel/nibabel-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 30.3.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module numpy >= 1.8}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose >= 0.10.1}
BuildRequires: %{python_module six >= 1.3}
BuildRequires: python-bz2file
# /SECTION
Requires: python-numpy >= 1.8
Requires: python-six >= 1.3
%ifpython2
Requires: python-bz2file
%endif
Recommends: python-dicom >= 0.9.9
BuildArch: noarch
%python_subpackages
%description
This package provides read +/- write access to some common medical and
neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and
later), GIFTI, NIfTI1, NIfTI2, CIFTI-2, MINC1, MINC2, AFNI BRIK/HEAD,
MGH and ECAT as well as Philips PAR/REC. We can read and write
FreeSurfer geometry, annotation and morphometry files. There is some
very limited support for DICOM.
%prep
%setup -q -n nibabel-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand nosetests-%{$python_bin_suffix} nibabel
%files %{python_files}
%doc AUTHOR Changelog README.rst
%license COPYING
%python3_only %{_bindir}/nib-dicomfs
%python3_only %{_bindir}/nib-diff
%python3_only %{_bindir}/nib-ls
%python3_only %{_bindir}/nib-nifti-dx
%python3_only %{_bindir}/nib-tck2trk
%python3_only %{_bindir}/nib-trk2tck
%python3_only %{_bindir}/parrec2nii
%{python_sitelib}/*
%changelog