59a70b2
%global forgeurl    https://github.com/G-node/nixpy
a7eb98c
59a70b2
Name:       python-nixio
6c2900a
Version:    1.5.3
bcc083d
Release:    %autorelease
adc1676
Summary:    Python bindings for NIX
15c4f7a
15c4f7a
%global     tag     %version
59a70b2
%forgemeta
a7eb98c
a7eb98c
License:    BSD
15c4f7a
URL:        %forgeurl
15c4f7a
Source0:    %forgesource
59a70b2
# The tagged snapshot on GitHub still says "dev" but the manually uploaded
59a70b2
# release does not, so use the info.json from there
59a70b2
# https://github.com/G-Node/nixpy/issues/528
59a70b2
Source1:    info.json
a7eb98c
a7eb98c
a7eb98c
BuildArch:      noarch
a7eb98c
# No need for nix, they're uncoupling it from the C++
a7eb98c
# https://github.com/G-Node/nixpy/pull/276
a7eb98c
a7eb98c
%description
a7eb98c
The NIX project started as an initiative within the Electrophysiology Task
a7eb98c
Force a part of the INCF Data sharing Program. The NIX data model allows to
a7eb98c
store fully annotated scientific data-set, i.e. the data together with its
a7eb98c
metadata within the same container. Our aim is to achieve standardization by
a7eb98c
providing a common/generic data structure for a multitude of data types. See
a7eb98c
the wiki for more information
a7eb98c
a7eb98c
The current implementations store the actual data using the HDF5 file format as
a7eb98c
a storage backend.
a7eb98c
59a70b2
%package -n python3-nixio
adc1676
Summary:        %{summary}
a7eb98c
BuildRequires:  python3-devel
469ce67
BuildRequires:  gcc
59a70b2
# use tests_require which is deprecated
0ea8710
BuildRequires:  %{py3_dist pytest}
0ea8710
BuildRequires:  %{py3_dist pytest-runner}
59a70b2
BuildRequires:  %{py3_dist scipy}
59a70b2
BuildRequires:  %{py3_dist pillow}
59a70b2
BuildRequires:  %{py3_dist matplotlib}
a7eb98c
59a70b2
%description -n python3-nixio
59a70b2
%{description}
a7eb98c
a7eb98c
%prep
59a70b2
%forgesetup
59a70b2
59a70b2
# it sets examples_path based on the name of the cwd
59a70b2
sed -i "s/nixpy/nixpy-%{version}/" nixio/test/test_doc_examples.py
59a70b2
59a70b2
cp %{SOURCE1} nixio/info.json -v -p
59a70b2
59a70b2
%generate_buildrequires
59a70b2
%pyproject_buildrequires -r
a7eb98c
a7eb98c
%build
59a70b2
%pyproject_wheel
a7eb98c
a7eb98c
%install
59a70b2
%pyproject_install
59a70b2
%pyproject_save_files nixio
a7eb98c
a7eb98c
%check
59a70b2
%{pytest}
a7eb98c
59a70b2
%files -n python3-nixio -f %{pyproject_files}
59a70b2
%{_bindir}/nixio
a7eb98c
a7eb98c
%changelog
bcc083d
%autochangelog