mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
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
|
||||
, 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 \
|
||||
|
Loading…
Reference in New Issue
Block a user