File python-linuxfabrik-lib.spec of Package python-linuxfabrik-lib

#
# spec file for package python-linuxfabrik-lib
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#


Name:           python-linuxfabrik-lib
Version:        2024060401
Release:        0
Summary:        Python libraries used in various Linuxfabrik projects, including the 'Linuxfabrik Monitoring Plugins' project
License:        Unlicense
URL:            https://github.com/Linuxfabrik/monitoring-plugins
Source:         https://files.pythonhosted.org/packages/source/l/linuxfabrik-lib/linuxfabrik_lib-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools >= 61}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module beautifulsoup4}
BuildRequires:  %{python_module lxml}
BuildRequires:  %{python_module netifaces}
BuildRequires:  %{python_module psutil}
BuildRequires:  %{python_module PyMySQL}
#BuildRequires:  %%{python_module pysmbclient}
#BuildRequires:  %%{python_module python-keystoneclient}
#BuildRequires:  %%{python_module python-novaclient}
#BuildRequires:  %%{python_module python-swiftclient}
BuildRequires:  %{python_module pywinrm}
BuildRequires:  %{python_module requests}
BuildRequires:  %{python_module smbprotocol}
#BuildRequires:  %%{python_module vici}
BuildRequires:  %{python_module xmltodict}
# /SECTION
BuildRequires:  fdupes
Requires:       python-beautifulsoup4
Requires:       python-lxml
Requires:       python-netifaces
Requires:       python-psutil
Requires:       python-PyMySQL
#Requires:       python-pysmbclient
#Requires:       python-python-keystoneclient
#Requires:       python-python-novaclient
#Requires:       python-python-swiftclient
Requires:       python-pywinrm
Requires:       python-requests
Requires:       python-smbprotocol
Requires:       python-vici
Requires:       python-xmltodict
BuildArch:      noarch
%python_subpackages

%description
Python libraries used in various Linuxfabrik projects, including the
'Linuxfabrik Monitoring Plugins' project.

%prep
%autosetup -p1 -n linuxfabrik_lib-%{version}

%build
%pyproject_wheel

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

%check
#CHOOSE: %%pytest OR %%pyunittest -v OR CUSTOM

%files %{python_files}
# ./lib/ ??? - wtf
# sollte should be fixed
%{python_sitelib}/lib
%{python_sitelib}/linuxfabrik_lib-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by