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:
parent
6512942884
commit
15498d642f
|
@ -12,6 +12,7 @@
|
||||||
, youtube-dl
|
, youtube-dl
|
||||||
, opusTools
|
, opusTools
|
||||||
, gst_all_1
|
, gst_all_1
|
||||||
|
, enableSonos ? true
|
||||||
}:
|
}:
|
||||||
let packages = [
|
let packages = [
|
||||||
vorbis-tools
|
vorbis-tools
|
||||||
|
@ -37,7 +38,7 @@ python3Packages.buildPythonApplication rec {
|
||||||
sha256 = "sha256-dxsIcBPrZaXlsfzOEXhYj2qoK5LRducJG2ggMrMMl9Y=";
|
sha256 = "sha256-dxsIcBPrZaXlsfzOEXhYj2qoK5LRducJG2ggMrMMl9Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; ([
|
||||||
PyChromecast
|
PyChromecast
|
||||||
psutil
|
psutil
|
||||||
mutagen
|
mutagen
|
||||||
|
@ -45,7 +46,7 @@ python3Packages.buildPythonApplication rec {
|
||||||
netifaces
|
netifaces
|
||||||
requests
|
requests
|
||||||
pyqt5
|
pyqt5
|
||||||
];
|
] ++ lib.optionals enableSonos [ soco ]);
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
|
|
Loading…
Reference in a new issue