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}
5f50107
Version:        2.2.1
0f8680b
Release:        %autorelease
07b2ecd
Summary:        A tool for digital signal processing for neural time series
07b2ecd
04d837a
License:        Apache-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
07b2ecd
07b2ecd
BuildArch:      noarch
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
8f5b69a
%py_provides 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
8f5b69a
%autosetup -n %{pypi_name}-%{version}
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
07b2ecd
%install
07b2ecd
%py3_install
07b2ecd
07b2ecd
%check
07b2ecd
%if %{with tests}
8f5b69a
# Deselected tests that require internet
8f5b69a
%pytest --deselect neurodsp/tests/utils/test_download.py
07b2ecd
%endif
07b2ecd
07b2ecd
%files -n python3-%{pypi_name}
07b2ecd
%license LICENSE
8f5b69a
%doc README.rst paper/*
07b2ecd
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
07b2ecd
%{python3_sitelib}/%{pypi_name}
07b2ecd
07b2ecd
%changelog
0f8680b
%autochangelog