%global srcname pricehist Name: python3-%{srcname} Version: 1.4.16 Release: 2%{?dist} Summary: Fetch and format historical price data License: MIT URL: https://gitlab.com/chrisberkhout/pricehist Source0: %{pypi_source %{srcname}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-poetry-core Requires: python3-cssselect Requires: python3-curlify Requires: python3-lxml Requires: python3-requests %description Pricehist fetches historical price data for currencies, commodities, and other assets from a range of sources, and formats it for import into plain-text accounting systems such as hledger, ledger, and beancount. %prep %autosetup -n %{srcname}-%{version} # Upstream caps curlify at <3.0.0 via Poetry's default caret pin, but the sole # use is a cosmetic to_curl() call that works unchanged on 3.x. Relax it so the # generated dependency doesn't block python3-curlify 3.0.0. sed -i 's/^curlify = .*/curlify = ">=2.2.1"/' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{srcname} %check %pyproject_check_import %files -f %{pyproject_files} %{_bindir}/pricehist %changelog * Sun Sep 6 2026 Chris Grau <113591+sirhc@users.noreply.github.com> - 1.4.16-2 - Relax the curlify <3.0.0 pin to allow python3-curlify 3.0.0 * Fri Aug 21 2026 Chris Grau <113591+sirhc@users.noreply.github.com> - 1.4.16-1 - Initial package