2021-09-30 16:46:22 +01:00
|
|
|
{ lib, python3Packages, mopidy }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "mopidy-ytmusic";
|
2022-03-16 19:47:55 +00:00
|
|
|
version = "0.3.5";
|
2021-09-30 16:46:22 +01:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Mopidy-YTMusic";
|
2022-03-16 19:47:55 +00:00
|
|
|
sha256 = "0pncyxfqxvznb9y4ksndbny1yf5mxh4089ak0yz86dp2qi5j99iv";
|
2021-09-30 16:46:22 +01:00
|
|
|
};
|
|
|
|
|
2022-03-16 19:47:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'ytmusicapi>=0.20.0,<0.21.0' 'ytmusicapi>=0.20.0'
|
|
|
|
'';
|
|
|
|
|
2021-09-30 16:46:22 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mopidy
|
|
|
|
python3Packages.ytmusicapi
|
|
|
|
python3Packages.pytube
|
|
|
|
];
|
|
|
|
|
2022-03-16 19:47:55 +00:00
|
|
|
pythonImportsCheck = [ "mopidy_ytmusic" ];
|
|
|
|
|
|
|
|
# has no tests
|
2021-09-30 16:46:22 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Mopidy extension for playing music from YouTube Music";
|
2022-03-16 19:47:55 +00:00
|
|
|
homepage = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic";
|
2021-09-30 16:46:22 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.nickhu ];
|
|
|
|
};
|
|
|
|
}
|