File python-acitoolkit.spec of Package python-acitoolkit

#
# spec file for package python-acitoolkit
#
# 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/
#


%global sname acitoolkit
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python3   1
Name:           python-acitoolkit
Version:        0.4
Release:        0
Summary:        Python library for programming ACI
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            http://github.com/datacenter/acitoolkit
Source:         https://github.com/datacenter/acitoolkit/archive/v%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python-Flask
BuildRequires:  python-Flask-Admin
BuildRequires:  python-Flask-Bootstrap
BuildRequires:  python-Flask-HTTPAuth
BuildRequires:  python-Flask-SQLAlchemy
BuildRequires:  python-Flask-WTF
BuildRequires:  python-GitPython
BuildRequires:  python-PyMySQL
BuildRequires:  python-graphviz
BuildRequires:  python-jsonschema
BuildRequires:  python-mock
BuildRequires:  python-pbr
BuildRequires:  python-requests
BuildRequires:  python-rpm-macros
BuildRequires:  python-setuptools
BuildRequires:  python-tabulate
BuildRequires:  python-websocket-client > 0.33.0
Requires:       python-Flask
Requires:       python-Flask-Admin
Requires:       python-Flask-Bootstrap
Requires:       python-Flask-HTTPAuth
Requires:       python-Flask-SQLAlchemy
Requires:       python-Flask-WTF
Requires:       python-GitPython
Requires:       python-PyMySQL
Requires:       python-graphviz
Requires:       python-jsonschema
Requires:       python-requests
Requires:       python-tabulate
Requires:       python-websocket-client > 0.33.0
BuildArch:      noarch
%python_subpackages

%description
Python Library for configuring the Cisco Application Policy
Infrastructure Controller.

%prep
%setup -q -n acitoolkit-%{version}
chmod -x LICENSE

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/acitoolkit_test.py offline

%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/acitoolkit
%{python_sitelib}/acitoolkit-*.egg-info

%changelog
openSUSE Build Service is sponsored by