%global pypi_name aiosnmp %bcond_with local Name: python-%{pypi_name} Version: 0.2.4 Release: 2%{?dist} Summary: Asyncio Python SNMP client License: MIT URL: https://github.com/hh-h/aiosnmp Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description aiosnmp is an asynchronous SNMP client for use with asyncio. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pytest-runner BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} aiosnmp is an asynchronous SNMP client for use with asyncio. %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %if %{with local} %pytest -v tests %else %pytest -v tests --ignore tests/test_connection.py --ignore tests/test_exceptions.py --ignore tests/test_snmp.py %endif %files -n python3-%{pypi_name} %doc README.md %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Wed Jan 27 2021 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Sep 14 2020 Fedora Release Engineering - 0.2.4-1 - Enable tests - Update to latest upstream release 0.2.4 * Tue Jul 28 2020 Fedora Release Engineering - 0.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 0.2.2-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 21 2020 Fabian Affolter - 0.2.2-2 - Add LICENSE file (rhbz#1790082) * Wed Jan 08 2020 Fabian Affolter - 0.2.2-1 - Initial package for Fedora