2021-02-05 17:12:51 +00:00
|
|
|
{ lib, python3Packages, mopidy }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mopidy-youtube";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Mopidy-YouTube";
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "0wmalfqnskglssq3gj6kkrq6h6c9yab503y72afhkm7n9r5c57zz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
patchPhase = "sed s/bs4/beautifulsoup4/ -i setup.cfg";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mopidy
|
|
|
|
python3Packages.beautifulsoup4
|
|
|
|
python3Packages.cachetools
|
|
|
|
python3Packages.youtube-dl
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mopidy extension for playing music from YouTube";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.spwhitt ];
|
|
|
|
};
|
|
|
|
}
|