File python-easysnmp.spec of Package python-easysnmp

#
# spec file for package python-easysnmp
#
# Copyright (c) 2017-2024, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/


Name:           python-easysnmp
Version:        0.2.6
Release:        0
Summary:        A fast and Pythonic SNMP library
License:        BSD-2-Clause
Group:          Development/Languages/Python
URL:            https://github.com/kamakazikamikaze/easysnmp
Source:         https://github.com/kamakazikamikaze/easysnmp/archive/%{version}.tar.gz#%/easysnmp-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
## SECTION test requirements
#BuildRequires:  %{python_module pytest}
#BuildRequires:  %{python_module pytest-cov}
#BuildRequires:  %{python_module pytest-flake8}
#BuildRequires:  %{python_module pytest-sugar}
## /SECTION
BuildRequires:  fdupes
BuildRequires:  net-snmp-devel
BuildRequires:  python-rpm-macros
%python_subpackages

%description
This is a fork of the official Net-SNMP Python Bindings but attempts to
bring a more Pythonic interface to the library.

%prep
%setup -q -n easysnmp-%{version}

%build
export CFLAGS="%{optflags}"
%python_build

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

%check
#%%pytest_arch
#/usr/sbin/snmpd -C -c tests/snmpd.conf
#%%python_exec setup.py test

%files %{python_files}
%license LICENSE
%doc CHANGELOG.rst README.rst
%{python_sitearch}/easysnmp*

%changelog
openSUSE Build Service is sponsored by