Name: python-uncertainties Version: 3.2.3 Release: %autorelease Summary: Transparent calculations with uncertainties on the quantities involved (aka "error propagation") License: BSD-3-Clause URL: https://github.com/lmfit/uncertainties Source: %{url}/archive/%{version}/uncertainties-%{version}.tar.gz # https://github.com/lmfit/uncertainties/pull/341 Patch0: uncertainties-3.2.3-fix-tests.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: The uncertainties package allows calculations with values that have uncertaintes, such as (2 +/- 0.1)*2 = 4 +/- 0.2. uncertainties takes the pain and complexity out of error propagation and calculations of values with uncertainties.} %description %_description %package -n python3-uncertainties Summary: %{summary} %description -n python3-uncertainties %_description %prep %autosetup -p1 -n uncertainties-%{version} sed -i 's/"pytest_codspeed",//' pyproject.toml %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires -x arrays,test %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files -l uncertainties %check %pyproject_check_import %pytest %files -n python3-uncertainties -f %{pyproject_files} %changelog %autochangelog