nixpkgs/pkgs/applications/audio/mopidy/ytmusic.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2022-11-12 19:23:26 +01:00
{ lib
, python3
, mopidy
}:
2021-09-30 17:46:22 +02:00
2022-11-12 19:23:26 +01:00
let
python = python3.override {
packageOverrides = self: super: {
ytmusicapi = super.ytmusicapi.overridePythonAttrs (old: rec {
version = "0.22.0";
format = "setuptools";
src = old.src.override {
inherit version;
hash = "sha256-CZ4uoW4UHn5C+MckQXysTdydaApn99b0UCnF5RPb7DI=";
};
});
};
};
in python.pkgs.buildPythonApplication rec {
2021-09-30 17:46:22 +02:00
pname = "mopidy-ytmusic";
2022-09-11 19:46:45 +02:00
version = "0.3.7";
2021-09-30 17:46:22 +02:00
2022-11-12 19:23:26 +01:00
src = python.pkgs.fetchPypi {
2021-09-30 17:46:22 +02:00
inherit version;
pname = "Mopidy-YTMusic";
2022-09-11 19:46:45 +02:00
sha256 = "0gqjvi3nfzkqvbdhihzai241p1h5p037bj2475cc93xwzyyqxcrq";
2021-09-30 17:46:22 +02:00
};
propagatedBuildInputs = [
2022-11-12 19:23:26 +01:00
(mopidy.override { pythonPackages = python.pkgs; })
python.pkgs.ytmusicapi
python.pkgs.pytube
2021-09-30 17:46:22 +02:00
];
pythonImportsCheck = [ "mopidy_ytmusic" ];
# has no tests
2021-09-30 17:46:22 +02:00
doCheck = false;
meta = with lib; {
description = "Mopidy extension for playing music from YouTube Music";
homepage = "https://github.com/OzymandiasTheGreat/mopidy-ytmusic";
2021-09-30 17:46:22 +02:00
license = licenses.asl20;
maintainers = [ maintainers.nickhu ];
};
}