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