blob: 09727e66856f9489946797acba103bc5d29a854a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
python3,
fetchFromGitHub,
mopidy,
}:
let
python = python3;
in
python.pkgs.buildPythonApplication (finalAttrs: {
pname = "mopidy-ytmusic";
version = "0.3.9";
pyproject = true;
src = fetchFromGitHub {
owner = "jmcdo29";
repo = "mopidy-ytmusic";
rev = "v${finalAttrs.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 = {
changelog = "https://github.com/jmcdo29/mopidy-ytmusic/releases/tag/${finalAttrs.src.rev}";
description = "Mopidy extension for playing music from YouTube Music";
homepage = "https://github.com/jmcdo29/mopidy-ytmusic";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.nickhu ];
};
})
|