7b30303
# Enabled by default
7b30303
%bcond_without tests
7b30303
7b30303
%global pypi_name pynwb
7b30303
7b30303
%global desc %{expand: \
7b30303
PyNWB is a Python package for working with NWB files. It provides a high-level
7b30303
API for efficiently working with Neurodata stored in the NWB format.
7b30303
https://pynwb.readthedocs.io/en/latest/}
7b30303
7b30303
Name:           python-%{pypi_name}
7b30303
Version:        1.0.3
7b30303
Release:        1%{?dist}
7b30303
Summary:        PyNWB is a Python package for working with NWB files
7b30303
License:        BSD
7b30303
URL:            https://github.com/NeurodataWithoutBorders/pynwb
7b30303
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
7b30303
BuildArch:      noarch
7b30303
7b30303
%{?python_enable_dependency_generator}
7b30303
7b30303
%description
7b30303
%{desc}
7b30303
7b30303
%{?python_provide:%python_provide python2-%{pypi_name}}
7b30303
7b30303
%package -n python3-%{pypi_name}
7b30303
Summary:        %{summary}
7b30303
7b30303
BuildRequires:  python3-devel
7b30303
BuildRequires:  python3-setuptools
7b30303
BuildRequires:  python3-certifi
7b30303
BuildRequires:	python3-chardet
7b30303
BuildRequires:	python3-h5py
7b30303
BuildRequires:	python3-idna
7b30303
BuildRequires:	python3-numpy
7b30303
BuildRequires:	python3-dateutil
7b30303
BuildRequires:  python3-requests
7b30303
BuildRequires:	python3-ruamel-yaml
7b30303
BuildRequires:	python3-six
7b30303
BuildRequires:  python3-urllib3
7b30303
BUildRequires:  python3-pandas
7b30303
BuildRequires:  python3-unittest2
7b30303
BuildRequires:	python3-hdmf
7b30303
7b30303
%{?python_provide:%python_provide python3-%{pypi_name}}
7b30303
7b30303
%description -n python3-%{pypi_name}
7b30303
%{desc}
7b30303
7b30303
%prep
7b30303
%autosetup -n %{pypi_name}-%{version}
7b30303
rm -rf %{pypi_name}.egg-info
7b30303
7b30303
# Multiple tests fail on this one file:
7b30303
# An issue should be filed upstream
7b30303
# get_build_manager should be get_manager
7b30303
# forms should be pynwb.forms
7b30303
# .. ?
7b30303
rm -f tests/build_fake_data.py
7b30303
rm -f tests/unit/__init__.py
7b30303
7b30303
%build
7b30303
%py3_build
7b30303
7b30303
%install
7b30303
%py3_install
7b30303
 
7b30303
%check
7b30303
%if %{with tests}
7b30303
%{__python3} setup.py test
7b30303
%endif
7b30303
7b30303
%files -n python3-%{pypi_name}
7b30303
%license license.txt
7b30303
%doc README.rst
7b30303
%{python3_sitelib}/%{pypi_name}/
7b30303
%{python3_sitelib}/%{pypi_name}-*.egg-info
7b30303
7b30303
%changelog
7b30303
* Thu Jul 25 2019 Luis Bazan <lbazan@fedoraproject.org> - 1.0.3-1
7b30303
- New upstream version
7b30303
7b30303
* Mon Apr 22 2019 Luis Bazan <lbazan@fedoraproject.org> - 1.0.2-1
7b30303
- New upstream version
7b30303
7b30303
* Mon Apr 15 2019 Luis Bazan <lbazan@fedoraproject.org> - 1.0.1-2
7b30303
- remove py2
7b30303
7b30303
* Mon Apr 15 2019 Luis Bazan <lbazan@fedoraproject.org> - 1.0.1-1
7b30303
- New upstream version
7b30303
7b30303
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-4
7b30303
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7b30303
7b30303
* Mon Nov 26 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.6.1-3
7b30303
- Add buildrequires 
7b30303
- Enable tests (thanks Ankur)
7b30303
7b30303
* Mon Nov 26 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.6.1-2
7b30303
- Fix comment 2 in BZ 1651365
7b30303
7b30303
* Mon Nov 26 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.6.1-1
7b30303
- New upstream