Blob Blame History Raw
Name:           python-bids-validator
Version:        1.9.2
Release:        %autorelease
Summary:        Validator for the Brain Imaging Data Structure

License:        MIT
Source0:        %{pypi_source bids-validator}

BuildArch:      noarch

BuildRequires:  python3-devel

%global common_description %{expand:
A library of helper functions written in Python, for use with BIDS compliant
applications written in this language.}

%description %{common_description}

%package -n python3-bids-validator
Summary:        %{summary}

%description -n python3-bids-validator %{common_description}

%autosetup -n bids-validator-%{version}

%pyproject_buildrequires -r

# The test module really shouldn’t be installed with the package:
mv -v bids_validator/test_*.py ./

%pyproject_save_files bids_validator

# Upstream tests require downloading data, and it's not obvious how we could
# make them work with pre-downloaded data.

%files -n python3-bids-validator -f %{pyproject_files}