2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, mopidy
|
|
|
|
}:
|
2021-10-01 09:20:50 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-10-01 09:20:50 +00:00
|
|
|
pname = "mopidy-ytmusic";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.3.8";
|
2021-10-01 09:20:50 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2021-10-01 09:20:50 +00:00
|
|
|
inherit version;
|
2022-12-02 08:20:57 +00:00
|
|
|
pname = "mopidy_ytmusic";
|
|
|
|
sha256 = "6b4d8ff9c477dbdd30d0259a009494ebe104cad3f8b37241ae503e5bce4ec2e8";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
(mopidy.override { pythonPackages = python3.pkgs; })
|
|
|
|
python3.pkgs.ytmusicapi
|
|
|
|
python3.pkgs.pytube
|
2021-10-01 09:20:50 +00:00
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [ "mopidy_ytmusic" ];
|
|
|
|
|
|
|
|
# has no tests
|
2021-10-01 09:20:50 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic/blob/v${version}/CHANGELOG.rst";
|
2021-10-01 09:20:50 +00:00
|
|
|
description = "Mopidy extension for playing music from YouTube Music";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic";
|
2021-10-01 09:20:50 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.nickhu ];
|
|
|
|
};
|
|
|
|
}
|