diff --git a/python-colorama.spec b/python-colorama.spec index 56de5a2..7449712 100644 --- a/python-colorama.spec +++ b/python-colorama.spec @@ -11,7 +11,6 @@ Source0: %{url}/archive/%{version}/colorama-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel -# for check BuildRequires: python3dist(pytest) @@ -43,6 +42,8 @@ Termcolor. %prep %autosetup -n %{pypi_name}-%{version} +# Upstram uses a pyproject.toml that the version of setuptools in RHEL 9 cannot parse. +# It also depends on hatch for packaging, which is not available in RHEL 9. tail -n +5 pyproject.toml > pyproject.toml_fixed mv pyproject.toml_fixed pyproject.toml