Blob Blame History Raw
%bcond_without tests
%global debug_package   %{nil}

%global desc %{expand:
A Python module to read Matlab files. This module works with both the old (<
7.3) and the new (>= 7.3) HDF5 based format. The output should be the same for
both kinds of files.

Documentation can be found here:}

Name:           python-pymatreader
Version:        0.0.32
Release:        %autorelease
Summary:        Convenient reader for Matlab mat files

License:        BSD
Source0:        %{url}/-/archive/v%{version}/pymatreader-v%{version}.tar.gz

ExcludeArch:    %{ix86}

ExcludeArch:    s390x

BuildRequires:  python3-devel
%if %{with tests}
BuildRequires:  python3-pytest

%description %{desc}

%package -n python3-pymatreader

Summary:        %{summary}

%description -n python3-pymatreader %{desc}

%autosetup -n pymatreader-v%{version}

%pyproject_buildrequires -r



%pyproject_save_files pymatreader

%if %{with tests}
# Reported upstream:
%{pytest} -k "not test_files_with_unsupported_classesv7"

%files -n python3-pymatreader -f %{pyproject_files}