%global pypi_name nwbinspector Name: python-%{pypi_name} Version: 0.7.2 Release: 2%{?dist} Summary: Inspect NWB files for compliance with best practices License: BSD-3-Clause URL: https://github.com/NeurodataWithoutBorders/nwbinspector Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: NWB Inspector checks Neurodata Without Borders (NWB) files for compliance with best practices and reports problems by importance. dandi runs it before upload.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n nwbinspector-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install # Build helpers some DataLad-template projects install at top level; not part of the package. rm -rf %{buildroot}%{python3_sitelib}/_datalad_buildsupport %{buildroot}%{python3_sitelib}/tools %{buildroot}%{python3_sitelib}/benchmarks %{buildroot}%{python3_sitelib}/tests %{buildroot}%{python3_sitelib}/tests.py # Old setup.py data_files can drop these at the top of site-packages (osfclient does). rm -f %{buildroot}%{python3_sitelib}/{LICENSE,VERSION,requirements.txt} %pyproject_save_files -L nwbinspector %check %pyproject_check_import -e 'nwbinspector.tests*' -e 'nwbinspector.*.tests*' -e '*.test_*' -e '*.conftest' -e '*.pytest_plugin' %{py3_test_envvars} %{buildroot}%{_bindir}/nwbinspector --help > /dev/null %files -n python3-%{pypi_name} -f %{pyproject_files} %license license.txt %{_bindir}/nwbinspector %changelog * Mon Oct 12 2026 Morgan Hough - 0.7.2-2 - Ship the licence with %license; upstream metadata has no License-File. * Mon Oct 12 2026 Morgan Hough - 0.7.2-1 - Initial package, for the DataLad extension stack and dandi.