[packages/python3-pychromecast] Up to 14.0.10
arekm
arekm at pld-linux.org
Fri Sep 25 19:32:21 CEST 2026
commit cddba4534de1a1cf6a89280fb292b5fdd2818a8b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Sep 25 19:31:52 2026 +0200
Up to 14.0.10
python3-pychromecast-build-caps.patch | 10 ++++++++
python3-pychromecast.spec | 45 ++++++++++++++++-------------------
2 files changed, 30 insertions(+), 25 deletions(-)
---
diff --git a/python3-pychromecast.spec b/python3-pychromecast.spec
index b2925c1..2bf0969 100644
--- a/python3-pychromecast.spec
+++ b/python3-pychromecast.spec
@@ -1,35 +1,29 @@
-#
-# Conditional build:
-%bcond_with tests # unit tests (not included)
-
%define module pychromecast
Summary: Library for Python 3 to communicate with the Google Chromecast
Summary(pl.UTF-8): Biblioteka Pythona 3 do komunikacji z Google Chromecast
Name: python3-%{module}
-# 10.3+ require protobuf >= 3.19.1
-Version: 10.2.3
-Release: 3
+Version: 14.0.10
+Release: 1
License: MIT
Group: Libraries/Python
-#Source0Download: https://github.com/balloob/pychromecast/releases
-Source0: https://github.com/balloob/pychromecast/archive/%{version}/pychromecast-%{version}.tar.gz
-# Source0-md5: ed387a2f272ee321d98b34cc395a97a5
-URL: https://github.com/balloob/pychromecast
-BuildRequires: python3-modules >= 1:3.6
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-casttube >= 0.2.0
-BuildRequires: python3-protobuf >= 3.0.0
-BuildRequires: python3-zeroconf >= 0.25.1
-%endif
+#Source0Download: https://github.com/home-assistant-libs/pychromecast/releases
+Source0: https://github.com/home-assistant-libs/pychromecast/archive/%{version}/pychromecast-%{version}.tar.gz
+# Source0-md5: 7555f36e4f578cbd065b3b2e1914216b
+Patch0: %{name}-build-caps.patch
+URL: https://github.com/home-assistant-libs/pychromecast
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.11
+BuildRequires: python3-setuptools >= 1:65.6
+BuildRequires: python3-wheel >= 0.37.1
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.6
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.11
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Library for Python 3.6+ to communicate with the Google Chromecast. It
+Library for Python 3.11+ 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
@@ -40,7 +34,7 @@ currently supports:
- Multi-room setups with Audio cast devices
%description -l pl.UTF-8
-Biblioteka Pythona 3.6+ do komunikacji z Google Chromecast. Obecne
+Biblioteka Pythona 3.11+ do komunikacji z Google Chromecast. Obecne
możliwości:
- automatyczne wykrywanie podłączonych Chromecastów w sieci
- uruchamianie domyślnego odbiornika i odtwarzanie treści online
@@ -52,14 +46,15 @@ możliwości:
%prep
%setup -q -n %{module}-%{version}
+%patch -P0 -p1
%build
-%py3_build %{?with_tests:test}
+%py3_build_pyproject
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
@@ -71,5 +66,5 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc LICENSE README.rst
%{py3_sitescriptdir}/pychromecast
-%{py3_sitescriptdir}/PyChromecast-%{version}-py*.egg-info
+%{py3_sitescriptdir}/pychromecast-%{version}.dist-info
%{_examplesdir}/python3-%{module}-%{version}
diff --git a/python3-pychromecast-build-caps.patch b/python3-pychromecast-build-caps.patch
new file mode 100644
index 0000000..7e732c3
--- /dev/null
+++ b/python3-pychromecast-build-caps.patch
@@ -0,0 +1,10 @@
+# upstream caps the build backends at the next unreleased version; the caps carry no code change
+--- pychromecast-14.0.10/pyproject.toml.orig
++++ pychromecast-14.0.10/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=65.6,<83.0", "wheel>=0.37.1,<0.47.0"]
++requires = ["setuptools>=65.6", "wheel>=0.37.1"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pychromecast.git/commitdiff/cddba4534de1a1cf6a89280fb292b5fdd2818a8b
More information about the pld-cvs-commit
mailing list