File pychromecast.spec of Package PyChromecast

%define pythons python3
%{?sle15_python_module_pythons}
Name:           python-PyChromecast
Version:        14.0.7
Release:        0
Summary:        Python module to talk to Google Chromecast
License:        MIT
URL:            https://github.com/balloob/pychromecast
Source:         pychromecast-%{version}.tar.xz
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-casttube >= 0.2.0
Requires:       python-protobuf >= 3.0.0
Requires:       python-requests >= 2.0
Requires:       python-zeroconf >= 0.25.1
Obsoletes:      python-pychromecast < %{version}
Conflicts:      python-pychromecast < %{version}
BuildArch:      noarch

%description
Library to communicate with the Google Chromecast. It currently supports
Auto discovering connected Chromecasts on the network, start the default
media receiver and play any online media, control playback of current
playing media, implement Google Chromecast api v2, communicate with apps
via channels, easily extendable to add support for unsupported namespaces,
multi-room setups with Audio cast devices.

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

%build
%pyproject_wheel

%install
%pyproject_install


# no tests even on GitHub https://github.com/balloob/pychromecast/issues/333
# but they will most probably ignore this issue
%files
%license LICENSE
%doc README.rst
%{python_sitelib}/pychromecast
%{python_sitelib}/pychromecast-*
%changelog
* Mon Jul 07 2025 Alec <info@agundur.de> - 1.0 rebuild
- look at project homepage for changes
openSUSE Build Service is sponsored by