%global pypi_name pytest-isort Name: python-%{pypi_name} Version: 3.0.0 Release: %mkrel 1 Summary: Pytest plugin to check import ordering using isort License: BSD URL: http://github.com/moccu/pytest-isort/ Source0: %{pypi_source} BuildArch: noarch %description py.test plugin to check import ordering using isort. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-isort BuildRequires: python3-pytest BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} py.test plugin to check import ordering using isort. %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE.rst %doc README.rst %{python3_sitelib}/pytest_isort/ %{python3_sitelib}/pytest_isort-%{version}-py%{python3_version}.egg-info