Blob Blame History Raw
%bcond_without tests

%global forgeurl
# Use github commit tar instead of pypi which does not include tests
%global commit e60bdb6e404eba0a495ce5d11d6265e24bd0efe5

%global desc %{expand: \
The Electrophys Feature Extraction Library (eFEL) allows neuroscientists to
automatically extract features from time series data recorded from neurons
(both in vitro and in silico). Examples are the action potential width and
amplitude in voltage traces recorded during whole-cell patch clamp experiments.
The user of the library provides a set of traces and selects the features to be
calculated. The library will then extract the requested features and return the
values to the user.

The core of the library is written in C++, and a Python wrapper is included. At
the moment we provide a way to automatically compile and install the library as
a Python module.}

Name:           python-efel
Version:        4.1.54
Release:        %autorelease
Summary:        Electrophys Feature Extraction Library

# python-pyedflib does not support s390x$
ExcludeArch:    s390x

License:        LGPLv3
Source0:        %{forgesource}
# Use the from pypi

BuildRequires:  gcc-c++
BuildRequires:  python3-devel


%package -n python3-efel
Summary:        %{summary}
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest
# from extras, but neo in Fedora doesn't provide extras yet, so we can't use
# the -x neo flag in pyproject_buildrequires
BuildRequires:  python3-neo
BuildRequires:  python3-scipy

%description -n python3-efel

rm -rf efel.egg-info

# Install the version file
cp %{SOURCE1} efel/ -v



# Remove headers. We won't provide them here.
rm -rf %{buildroot}/%{python3_sitearch}/efel/cppcore/
%pyproject_save_files efel

%if %{with tests}
# is obsolete

%files -n python3-efel -f %{pyproject_files}
%exclude %{python3_sitearch}/efel/cppcore/