mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
f2e95cfc72
Just like the AUR and as suggested in https://github.com/OzymandiasTheGreat/mopidy-ytmusic/issues/71 we switch to a fork which uses a more recent version of ytmusicapi. Diff: https://github.com/jmcdo29/mopidy-ytmusic/compare/v0.3.8...v0.3.9 Changelog: https://github.com/jmcdo29/mopidy-ytmusic/releases/tag/v0.3.9
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, mopidy
|
|
}:
|
|
|
|
let
|
|
python = python3;
|
|
in python.pkgs.buildPythonApplication rec {
|
|
pname = "mopidy-ytmusic";
|
|
version = "0.3.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmcdo29";
|
|
repo = "mopidy-ytmusic";
|
|
rev = "v${version}";
|
|
hash = "sha256-2o4fDtaIxRDvIiAGV/9qK/00BmYXasBUwW03fxFcDAU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# only setup.py has up to date dependencies
|
|
rm pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = with python.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
(mopidy.override { pythonPackages = python.pkgs; })
|
|
python.pkgs.ytmusicapi
|
|
python.pkgs.pytube
|
|
];
|
|
|
|
pythonImportsCheck = [ "mopidy_ytmusic" ];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/jmcdo29/mopidy-ytmusic/releases/tag/${src.rev}";
|
|
description = "Mopidy extension for playing music from YouTube Music";
|
|
homepage = "https://github.com/jmcdo29/mopidy-ytmusic";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.nickhu ];
|
|
};
|
|
}
|