diff --git a/python-pytest-pycodestyle.spec b/python-pytest-pycodestyle.spec index 2f034e9..3ddab4a 100644 --- a/python-pytest-pycodestyle.spec +++ b/python-pytest-pycodestyle.spec @@ -48,7 +48,9 @@ pytest plugin to run pycodestyle in python tests %prep %setup -q -n pytest_pycodestyle-%{version} - +%if 0%{?suse_version} <= 1500 +sed -i 's/license = "MIT"/license = { text = "MIT" }/' pyproject.toml +%endif %build %pyproject_wheel