Blame python-neurosynth.spec

29ca06b
%global pypi_name neurosynth
29ca06b
5d77eb4
# The test require internet to download data and so cannot be run in koji
5d77eb4
# Test disable
5d77eb4
%bcond_with tests
5d77eb4
29ca06b
Name:		python-%{pypi_name}
29ca06b
Version:	0.3.7
ba54727
Release:	5%{?dist}
29ca06b
Summary:	Large-scale synthesis of functional neuroimaging data
29ca06b
29ca06b
License:	MIT
29ca06b
URL:		https://github.com/neurosynth/neurosynth
29ca06b
Source0:	%{pypi_source}
29ca06b
BuildArch:	noarch
29ca06b
 
29ca06b
BuildRequires:	python3-devel
29ca06b
BuildRequires:	python3dist(biopython)
29ca06b
BuildRequires:	python3dist(nibabel)
29ca06b
BuildRequires:	python3dist(nose)
29ca06b
BuildRequires:	python3dist(nose) >= 0.10.1
29ca06b
BuildRequires:	python3dist(numpy)
29ca06b
BuildRequires:	python3dist(pandas)
29ca06b
BuildRequires:	python3dist(ply)
29ca06b
BuildRequires:	python3dist(scikit-learn)
29ca06b
BuildRequires:	python3dist(scipy)
29ca06b
BuildRequires:	python3dist(setuptools)
29ca06b
BuildRequires:	python3dist(six)
29ca06b
29ca06b
%description
29ca06b
Neurosynth is a Python package for large-scale synthesis of 
29ca06b
functional neuroimaging data.
29ca06b
29ca06b
%package -n	python3-%{pypi_name}
29ca06b
Summary:	%{summary}
29ca06b
%{?python_provide:%python_provide python3-%{pypi_name}}
29ca06b
 
29ca06b
Requires:	python3dist(biopython)
29ca06b
Requires:	python3dist(nibabel)
29ca06b
Requires:	python3dist(nose) >= 0.10.1
29ca06b
Requires:	python3dist(numpy)
29ca06b
Requires:	python3dist(pandas)
29ca06b
Requires:	python3dist(ply)
29ca06b
Requires:	python3dist(scikit-learn)
29ca06b
Requires:	python3dist(scipy)
29ca06b
Requires:	python3dist(six)
29ca06b
29ca06b
%description -n	python3-%{pypi_name}
29ca06b
Neurosynth is a Python package for large-scale synthesis of 
29ca06b
functional neuroimaging data.
29ca06b
29ca06b
%prep
29ca06b
%autosetup -n %{pypi_name}-%{version}
29ca06b
# Remove bundled egg-info
29ca06b
rm -rf %{pypi_name}.egg-info
29ca06b
29ca06b
for lib in $(find . -type f -name "*.py"); do
29ca06b
 sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
29ca06b
 touch -r $lib $lib.new &&
29ca06b
 mv $lib.new $lib
29ca06b
done
29ca06b
29ca06b
chmod 0644 neurosynth/tests/data/sgacc_mask.nii.gz
29ca06b
29ca06b
%build
29ca06b
%py3_build
29ca06b
29ca06b
%install
29ca06b
%py3_install
29ca06b
29ca06b
%check
5d77eb4
%if %{with tests}
29ca06b
%{__python3} setup.py test
5d77eb4
%endif
29ca06b
29ca06b
%files -n python3-%{pypi_name}
29ca06b
%license LICENSE
29ca06b
%doc README.md
29ca06b
%{python3_sitelib}/%{pypi_name}
29ca06b
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
29ca06b
29ca06b
%changelog
ba54727
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-5
ba54727
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ba54727
ac99504
* Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 0.3.7-4
ac99504
- Rebuilt for Python 3.8
ac99504
b7dbb3a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
b7dbb3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b7dbb3a
5d77eb4
* Thu Jun 20 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.3.7-2
5d77eb4
- Test need download data
5d77eb4
29ca06b
* Fri Jun 14 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.3.7-1
29ca06b
- Initial package.