|
 |
c971cb4 |
%bcond_without tests
|
|
 |
c971cb4 |
|
|
 |
10feeaa |
Name: python-ephyviewer
|
|
 |
10feeaa |
Version: 1.5.1
|
|
 |
10feeaa |
Release: %autorelease
|
|
 |
10feeaa |
Summary: Simple viewers for ephys signals, events, video and more
|
|
 |
10feeaa |
|
|
 |
10feeaa |
License: MIT
|
|
 |
10feeaa |
URL: https://github.com/NeuralEnsemble/ephyviewer
|
|
 |
10feeaa |
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
 |
10feeaa |
|
|
 |
10feeaa |
BuildArch: noarch
|
|
 |
10feeaa |
BuildRequires: python3-devel
|
|
 |
10feeaa |
BuildRequires: python3-pytest
|
|
 |
10feeaa |
|
|
 |
2d47d36 |
# python-pyedflib does not support s390x$
|
|
 |
2d47d36 |
# https://src.fedoraproject.org/rpms/python-pyedflib/blob/rawhide/f/python-pyedflib.spec$
|
|
 |
2d47d36 |
ExcludeArch: s390x
|
|
 |
2d47d36 |
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%global _description %{expand:
|
|
 |
c971cb4 |
ephyviewer is a Python library based on pyqtgraph for building custom viewers
|
|
 |
c971cb4 |
for electrophysiological signals, video, events, epochs, spike trains, data
|
|
 |
c971cb4 |
tables, and time-frequency representations of signals. It also provides an
|
|
 |
c971cb4 |
epoch encoder for creating annotations.
|
|
 |
c971cb4 |
|
|
 |
c971cb4 |
Documentation is available at
|
|
 |
c971cb4 |
https://ephyviewer.readthedocs.io/}
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%description %_description
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%package -n python3-ephyviewer
|
|
 |
10feeaa |
Summary: %{summary}
|
|
 |
c971cb4 |
# needs Xvfb
|
|
 |
c971cb4 |
BuildRequires: xorg-x11-server-Xvfb
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%description -n python3-ephyviewer %_description
|
|
 |
10feeaa |
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%prep
|
|
 |
10feeaa |
%autosetup -n ephyviewer-%{version}
|
|
 |
10feeaa |
|
|
 |
c971cb4 |
# spikeinterface and av optional and not yet packaged
|
|
 |
c971cb4 |
# https://pagure.io/neuro-sig/NeuroFedora/issue/473
|
|
 |
c971cb4 |
# av: bindings for ffmpeg so we'll need to see if it can be included in Fedora
|
|
 |
c971cb4 |
# remove pytest-cov
|
|
 |
c971cb4 |
sed -i -e '/spikeinterface/ d' -e '/av/ d' -e '/pytest-cov/ d' requirements-tests.txt
|
|
 |
c971cb4 |
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%generate_buildrequires
|
|
 |
c971cb4 |
%pyproject_buildrequires -r -x tests
|
|
 |
10feeaa |
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%build
|
|
 |
10feeaa |
%pyproject_wheel
|
|
 |
10feeaa |
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%install
|
|
 |
10feeaa |
%pyproject_install
|
|
 |
10feeaa |
%pyproject_save_files ephyviewer
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%check
|
|
 |
10feeaa |
%if %{with tests}
|
|
 |
10feeaa |
|
|
 |
c971cb4 |
# some tests segfault with xvfb, so we disable these
|
|
 |
c971cb4 |
# other tests that require unpackaged extra modules or download data
|
|
 |
c971cb4 |
xvfb-run -a -s "-screen 0 1920x1200x24 -ac +extension GLX" pytest-3 \
|
|
 |
c971cb4 |
-k "not test_spiketrainviewer and not test_timefreqviewer and not test_traceviewer and not test_VideoMultiFileSource and not test_spikeinterface_sources and not test_spikeinterface_viewer and not test_videoviewer and not test_neo_rawio_sources and not test_mainviewer2 and not test_neoviewer"
|
|
 |
10feeaa |
%endif
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%files -n python3-ephyviewer -f %{pyproject_files}
|
|
 |
10feeaa |
%doc README.*
|
|
 |
c971cb4 |
%{_bindir}/ephyviewer
|
|
 |
10feeaa |
|
|
 |
10feeaa |
|
|
 |
10feeaa |
%changelog
|
|
 |
10feeaa |
%autochangelog
|