File python-flake8-import-order.spec of Package python-flake8-import-order

#
# spec file for package python-flake8-import-order
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-flake8-import-order
Version:        0.18
Release:        0
Summary:        Flake8 plugin that checks the ordering of import statements
License:        LGPL-3.0-only
Group:          Development/Languages/Python
URL:            https://github.com/public/flake8-import-order
Source:         https://files.pythonhosted.org/packages/source/f/flake8-import-order/flake8-import-order-%{version}.tar.gz
BuildRequires:  %{python_module flake8}
BuildRequires:  %{python_module pycodestyle}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
BuildRequires:  python2-enum34
Requires:       python-flake8
Requires:       python-pycodestyle
BuildArch:      noarch
%ifpython2
Requires:       python2-enum34
%endif
%python_subpackages

%description
Flake8 and pylama plugin that checks the ordering of import statements.

%prep
%setup -q -n flake8-import-order-%{version}

%build
%python_build

%install
%python_install

%files %{python_files}
%license COPYING
%doc README.rst CHANGELOG.rst
%{python_sitelib}/flake8_import_order/
%{python_sitelib}/flake8_import_order-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by