2022-11-12 18:23:26 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-05-25 11:49:37 +00:00
|
|
|
, fetchPypi
|
2022-11-12 18:23:26 +00:00
|
|
|
, mopidy
|
|
|
|
}:
|
2021-09-30 15:46:22 +00:00
|
|
|
|
2023-05-02 04:42:06 +00:00
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
ytmusicapi = super.ytmusicapi.overridePythonAttrs (old: rec {
|
|
|
|
version = "0.25.1";
|
2023-05-25 11:49:37 +00:00
|
|
|
src = fetchPypi {
|
2023-05-02 04:42:06 +00:00
|
|
|
inherit (old) pname;
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-uc/fgDetSYaCRzff0SzfbRhs3TaKrfE2h6roWkkj8yQ=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in python.pkgs.buildPythonApplication rec {
|
2021-09-30 15:46:22 +00:00
|
|
|
pname = "mopidy-ytmusic";
|
2022-11-30 01:01:39 +00:00
|
|
|
version = "0.3.8";
|
2021-09-30 15:46:22 +00:00
|
|
|
|
2023-05-25 11:49:37 +00:00
|
|
|
src = fetchPypi {
|
2021-09-30 15:46:22 +00:00
|
|
|
inherit version;
|
2022-11-30 01:01:39 +00:00
|
|
|
pname = "mopidy_ytmusic";
|
|
|
|
sha256 = "6b4d8ff9c477dbdd30d0259a009494ebe104cad3f8b37241ae503e5bce4ec2e8";
|
2021-09-30 15:46:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-05-02 04:42:06 +00:00
|
|
|
(mopidy.override { pythonPackages = python.pkgs; })
|
|
|
|
python.pkgs.ytmusicapi
|
|
|
|
python.pkgs.pytube
|
2021-09-30 15:46:22 +00:00
|
|
|
];
|
|
|
|
|
2022-03-16 19:47:55 +00:00
|
|
|
pythonImportsCheck = [ "mopidy_ytmusic" ];
|
|
|
|
|
|
|
|
# has no tests
|
2021-09-30 15:46:22 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-11-30 01:01:39 +00:00
|
|
|
changelog = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic/blob/v${version}/CHANGELOG.rst";
|
2021-09-30 15:46:22 +00:00
|
|
|
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 15:46:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.nickhu ];
|
|
|
|
};
|
|
|
|
}
|