File python-netmiko.spec of Package python-netmiko

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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-netmiko
Version:        2.2.2
Release:        0
Summary:        Multi-vendor library to simplify Paramiko SSH connections to network devices
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  python2-enum34
BuildRequires:  python2-ipaddress
Requires:       python-PyYAML
Requires:       python-paramiko >= 2.0.0
Requires:       python-pyserial
Requires:       python-scp >= 0.10.0
Requires:       python-textfsm
BuildArch:      noarch
Requires:       python-enum34
Requires:       python-ipaddress
# SECTION test requirements
BuildRequires:  %{python_module PyYAML}
BuildRequires:  %{python_module paramiko >= 2.0.0}
BuildRequires:  %{python_module pyserial}
BuildRequires:  %{python_module scp >= 0.10.0}
BuildRequires:  %{python_module textfsm}

Multi-vendor library to simplify Paramiko SSH connections to network devices.

%setup -q -n netmiko-%{version}


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

# NOTE: for testing, we have to manually run it against a given device.
# See
# Unfortunately, we can't do that during build as those doesn't appeared
# to be unit tests.

%files %{python_files}
%license LICENSE

openSUSE Build Service is sponsored by