2020-04-23 13:17:51 +00:00
#
# spec file for package python-napalm-arubaos-switch
#
2023-01-05 14:52:03 +00:00
# Copyright (c) 2023 SUSE LLC
2021-12-20 21:13:52 +00:00
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
2020-04-23 13:17:51 +00:00
#
# 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.
2021-12-20 21:13:52 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
2020-04-23 13:17:51 +00:00
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
2021-12-20 21:13:52 +00:00
%define skip_python36 1
2020-04-23 13:17:51 +00:00
Name : python-napalm-arubaos-switch
2021-12-20 21:13:52 +00:00
Version : 0.2.0
2020-04-23 13:17:51 +00:00
Release : 0
License : MIT
Summary : NAPALM - ArubaOS network driver
2021-12-20 21:13:52 +00:00
URL : https://github.com/napalm-automation-community/napalm-arubaos-switch/
2020-04-23 13:17:51 +00:00
Group : Development/Languages/Python
2021-12-20 21:13:52 +00:00
Source : https://github.com/napalm-automation-community/napalm-arubaos-switch/archive/%{version} .tar.gz#/napalm-arubaos-switch-%{version}.tar.gz
2022-08-26 06:11:44 +00:00
# PATCH-FIX-UPSTREAM gh/napalm-automation-community/napalm-arubaos-switch/commit/ebd48e46 the driver needs to return the speed as float instead of an integer
Patch0 : float-speed.patch
2020-04-23 13:17:51 +00:00
BuildRequires : %{python_module setuptools}
2021-12-20 21:13:52 +00:00
BuildRequires : python-rpm-macros
2020-04-23 13:17:51 +00:00
# SECTION test requirements
2021-12-20 21:13:52 +00:00
BuildRequires : %{python_module napalm >= 3.3.0}
2020-04-23 13:17:51 +00:00
BuildRequires : %{python_module netaddr}
2022-08-26 06:11:44 +00:00
BuildRequires : %{python_module netutils}
2021-12-20 21:13:52 +00:00
BuildRequires : %{python_module pytest-cov}
BuildRequires : %{python_module pytest-json-report}
BuildRequires : %{python_module pytest}
BuildRequires : %{python_module pytest}
2020-04-23 13:17:51 +00:00
BuildRequires : %{python_module requests-toolbelt}
2021-12-20 21:13:52 +00:00
BuildRequires : %{python_module requests}
2020-04-23 13:17:51 +00:00
BuildRequires : %{python_module textfsm >= 1.1.0}
# /SECTION
BuildRequires : fdupes
2021-12-20 21:13:52 +00:00
Requires : python-napalm >= 3.3.0
2020-04-23 13:17:51 +00:00
Requires : python-netaddr
Requires : python-requests
Requires : python-requests-toolbelt
Requires : python-textfsm >= 1.1.0
BuildArch : noarch
%python_subpackages
%description
ArubaOS driver support for NAPLAM network automation.
This Drivers uses the REST interface.
%prep
%setup -q -n napalm-arubaos-switch-%{version}
2022-08-26 06:11:44 +00:00
%autopatch -p1
2020-04-23 13:17:51 +00:00
%build
%python_build
%install
%python_install
2021-12-20 21:13:52 +00:00
# Remove test from sitelib
%python_expand rm -R %{buildroot} %{$python_sitelib}/test/
2020-04-23 13:17:51 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}
2021-12-20 21:13:52 +00:00
%check
2023-01-05 14:52:03 +00:00
skip_tests=" t e s t _ t r a c e r o u t e "
# gh#napalm-automation-community/napalm-arubaos-switch#20
skip_tests+=" o r t e s t _ m e t h o d _ s i g n a t u r e s o r t e s t _ g e t _ f a c t s "
%pytest -k " n o t ( $ { s k i p _ t e s t s } ) "
2020-04-23 13:17:51 +00:00
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib} /napalm_arubaos_switch*
%{python_sitelib} /napalm_arubaoss
%changelog