Blame python-neurodsp.spec

07b2ecd
%bcond_without tests
07b2ecd
07b2ecd
%global pypi_name neurodsp
07b2ecd
07b2ecd
%global _description %{expand:
07b2ecd
NeuroDSP is package of tools to analyze and simulate neural 
07b2ecd
time series, using digital signal processing.
07b2ecd
07b2ecd
Available modules in NeuroDSP include:
07b2ecd
07b2ecd
* filt : Filter data with bandpass, highpass, lowpass, or
07b2ecd
notch filters
07b2ecd
* burst : Detect bursting oscillations in neural signals
07b2ecd
* rhythm : Find and analyze rhythmic and recurrent patterns
07b2ecd
in time series
07b2ecd
* spectral : Compute spectral domain features such as power
07b2ecd
spectra
07b2ecd
* timefrequency : Estimate instantaneous measures of
07b2ecd
oscillatory activity
07b2ecd
* sim : Simulate time series, including periodic and
07b2ecd
aperiodic signal components
07b2ecd
* plts : Plotting functions
07b2ecd
07b2ecd
If you use this code in your project, please cite:
07b2ecd
07b2ecd
Cole, S., Donoghue, T., Gao, R., & Voytek, B. (2019).
07b2ecd
NeuroDSP: A package for neural digital signal processing.
07b2ecd
Journal of Open Source Software, 4(36), 1272.
07b2ecd
https://doi.org/10.21105/joss.01272}
07b2ecd
07b2ecd
Name:           python-%{pypi_name}
07b2ecd
Version:        2.0.0
4744795
Release:        7%{?dist}
07b2ecd
Summary:        A tool for digital signal processing for neural time series
07b2ecd
07b2ecd
License:        ASL 2.0
07b2ecd
URL:            https://neurodsp-tools.github.io/
07b2ecd
Source0:        https://github.com/neurodsp-tools/%{pypi_name}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
8d41566
Patch1:			0001-Enforce-that-wavelet_len-be-an-int-as-it-should-be.patch
07b2ecd
07b2ecd
BuildArch:      noarch
07b2ecd
07b2ecd
# Install dependencies automatically
07b2ecd
%{?python_enable_dependency_generator}
07b2ecd
07b2ecd
%description %_description
07b2ecd
07b2ecd
%package -n python3-%{pypi_name}
07b2ecd
Summary:        %{summary}
07b2ecd
BuildRequires:  python3-devel
22884e4
BuildRequires:  %{py3_dist setuptools}
07b2ecd
BuildRequires:  %{py3_dist numpy}
07b2ecd
BuildRequires:  %{py3_dist scipy}
07b2ecd
BuildRequires:  %{py3_dist matplotlib}
07b2ecd
07b2ecd
%if %{with tests}
07b2ecd
BuildRequires:  python3-pytest
07b2ecd
%endif
07b2ecd
07b2ecd
%{?python_provide:%python_provide python3-%{pypi_name}}
07b2ecd
07b2ecd
%description -n python3-%{pypi_name} %_description
07b2ecd
07b2ecd
%prep
07b2ecd
# No keyring/signature from the upstream to verify the source
8d41566
%autosetup -n %{pypi_name}-%{version} -p1
07b2ecd
rm -rf %{pypi_name}.egg-info
07b2ecd
07b2ecd
find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
07b2ecd
07b2ecd
%build
07b2ecd
%py3_build
07b2ecd
# cannot build the docs, as it downloads additional datasets (through mne).
07b2ecd
# the docs also don't build unless line #101 is uncommented (in conf.py).
07b2ecd
07b2ecd
%install
07b2ecd
%py3_install
07b2ecd
07b2ecd
%check
07b2ecd
%if %{with tests}
07b2ecd
pytest-3
07b2ecd
%endif
07b2ecd
07b2ecd
%files -n python3-%{pypi_name}
07b2ecd
%license LICENSE
07b2ecd
%doc README.md paper/*
07b2ecd
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
07b2ecd
%{python3_sitelib}/%{pypi_name}
07b2ecd
07b2ecd
%changelog
4744795
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
4744795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4744795
91f1766
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-6
91f1766
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
91f1766
22884e4
* Thu Jun 25 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 2.0.0-5
22884e4
- Added setuptools to BuildRequires
22884e4
fb26411
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.0.0-4
fb26411
- Rebuilt for Python 3.9
fb26411
8d41566
* Sat Feb 08 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 2.0.0-3
8d41566
- Removed gnupg from BuildRequires
8d41566
- Added a patch to fix some test failures
8d41566
78f18c7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
78f18c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
78f18c7
07b2ecd
* Fri Oct 11 2019 Aniket Pradhan <major AT fedoraproject DOT org> - 2.0.0-1
07b2ecd
- Initial build