3
0
Fork 0
forked from mirrors/nixpkgs

mopidy-ytmusic: use ytmusicapi 0.22.0

This commit is contained in:
Robert Schütz 2022-11-12 10:23:26 -08:00 committed by Robert Schütz
parent 7e180c1b05
commit 41d87c3fb7

View file

@ -1,19 +1,35 @@
{ lib, python3Packages, mopidy }:
{ lib
, python3
, mopidy
}:
python3Packages.buildPythonApplication rec {
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 {
pname = "mopidy-ytmusic";
version = "0.3.7";
src = python3Packages.fetchPypi {
src = python.pkgs.fetchPypi {
inherit version;
pname = "Mopidy-YTMusic";
sha256 = "0gqjvi3nfzkqvbdhihzai241p1h5p037bj2475cc93xwzyyqxcrq";
};
propagatedBuildInputs = [
mopidy
python3Packages.ytmusicapi
python3Packages.pytube
(mopidy.override { pythonPackages = python.pkgs; })
python.pkgs.ytmusicapi
python.pkgs.pytube
];
pythonImportsCheck = [ "mopidy_ytmusic" ];