%global pypi_name datasalad Name: python-%{pypi_name} Version: 0.9.0 Release: 2%{?dist} Summary: Pure-Python library with utilities for data management tools License: MIT URL: https://hub.datalad.org/datalad/datasalad Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: datasalad is a small pure-Python library of building blocks used by DataLad: iterators over streams of bytes, line splitting, process execution helpers and git-related parsing. It has no dependencies.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n datasalad-%{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 datasalad %check %pyproject_check_import -e 'datasalad.tests*' -e 'datasalad.*.tests*' -e '*.test_*' -e '*.conftest' -e '*.pytest_plugin' %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %changelog * Mon Oct 12 2026 Morgan Hough - 0.9.0-2 - Import check skips test_* modules (they need psutil). * Mon Oct 12 2026 Morgan Hough - 0.9.0-1 - Initial package, for the DataLad extension stack and dandi.