mkchromecast: Add Sonos support

mkchromecast optionally depends on the soco library, which provides Sonos
speaker support
(https://github.com/muammar/mkchromecast/blob/master/README.md#sonos-support)

Add an option which brings in the soco dependency, enable it by default for
convenience.
This commit is contained in:
williamvds 2022-12-21 21:59:41 +00:00
parent 6512942884
commit 15498d642f
No known key found for this signature in database
GPG Key ID: 7A4DF5A8CDBD49C7

View File

@ -12,6 +12,7 @@
, youtube-dl
, opusTools
, gst_all_1
, enableSonos ? true
}:
let packages = [
vorbis-tools
@ -37,7 +38,7 @@ python3Packages.buildPythonApplication rec {
sha256 = "sha256-dxsIcBPrZaXlsfzOEXhYj2qoK5LRducJG2ggMrMMl9Y=";
};
propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = with python3Packages; ([
PyChromecast
psutil
mutagen
@ -45,7 +46,7 @@ python3Packages.buildPythonApplication rec {
netifaces
requests
pyqt5
];
] ++ lib.optionals enableSonos [ soco ]);
postPatch = ''
substituteInPlace setup.py \