2cb4dcf
%global pypi_name wled
2cb4dcf
2cb4dcf
Name:           python-%{pypi_name}
2cb4dcf
Version:        0.4.4
263ae1c
Release:        13%{?dist}
2cb4dcf
Summary:        Python client for WLED
2cb4dcf
2cb4dcf
License:        MIT
2cb4dcf
URL:            https://github.com/frenck/python-wled
2cb4dcf
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
a3a3fa1
# Replace async_timeout with asyncio.timeout
a3a3fa1
# https://github.com/frenck/python-wled/pull/1163
a3a3fa1
# Backported to 0.4.4
a3a3fa1
Patch:          0001-Replace-async_timeout-with-asyncio.timeout-1163.patch
2cb4dcf
BuildArch:      noarch
2cb4dcf
2cb4dcf
%description
2cb4dcf
This package allows you to control and monitor an WLED device
2cb4dcf
programmatically. It is mainly created to allow third-party
2cb4dcf
programs to automate the behavior of WLED.
2cb4dcf
2cb4dcf
%package -n     python3-%{pypi_name}
2cb4dcf
Summary:        %{summary}
2cb4dcf
2cb4dcf
BuildRequires:  python3-devel
2cb4dcf
BuildRequires:  %{py3_dist aiohttp}
2cb4dcf
BuildRequires:  %{py3_dist attrs}
2cb4dcf
BuildRequires:  %{py3_dist setuptools}
2cb4dcf
BuildRequires:  %{py3_dist yarl}
2cb4dcf
BuildRequires:  %{py3_dist pytest}
2cb4dcf
BuildRequires:  %{py3_dist backoff}
2cb4dcf
BuildRequires:  %{py3_dist aresponses}
2cb4dcf
BuildRequires:  %{py3_dist pytest-asyncio}
2cb4dcf
2cb4dcf
%description -n python3-%{pypi_name}
2cb4dcf
This package allows you to control and monitor an WLED device
2cb4dcf
programmatically. It is mainly created to allow third-party
2cb4dcf
programs to automate the behavior of WLED.
2cb4dcf
2cb4dcf
%prep
a3a3fa1
%autosetup -n python-%{pypi_name}-%{version} -p1
2cb4dcf
rm -rf %{pypi_name}.egg-info
2cb4dcf
2cb4dcf
%build
2cb4dcf
%py3_build
2cb4dcf
2cb4dcf
%install
2cb4dcf
%py3_install
2cb4dcf
2cb4dcf
%check
2cb4dcf
%pytest -v tests
2cb4dcf
%files -n python3-%{pypi_name}
2cb4dcf
%license LICENSE.md
2cb4dcf
%doc README.md
2cb4dcf
%{python3_sitelib}/%{pypi_name}/
2cb4dcf
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
2cb4dcf
2cb4dcf
%changelog
263ae1c
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-13
263ae1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
263ae1c
24d99c4
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-12
24d99c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
24d99c4
a3a3fa1
* Sat Dec 02 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.4.4-11
a3a3fa1
- Backport “Replace async_timeout with asyncio.timeout”, PR#1163
a3a3fa1
d63cdd1
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-10
d63cdd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
d63cdd1
1edf02c
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.4.4-9
1edf02c
- Rebuilt for Python 3.12
1edf02c
0b9bfe4
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-8
0b9bfe4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
0b9bfe4
ac2d759
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-7
ac2d759
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
ac2d759
bf8837b
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 0.4.4-6
bf8837b
- Rebuilt for Python 3.11
bf8837b
eda4df5
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-5
eda4df5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
eda4df5
55fc37e
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-4
55fc37e
- Second attempt - Rebuilt for
55fc37e
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
55fc37e
7599953
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.4-3
7599953
- Rebuilt for Python 3.10
7599953
71c3da7
* Wed Jan 20 2021 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.4-2
2cb4dcf
- Update to new macros (#1903509)
2cb4dcf
2cb4dcf
* Wed Dec 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.4-1
2cb4dcf
- Initial package