2021-10-11 16:52:03 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, mopidy
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-11 16:52:03 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mopidy-youtube";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.6";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-11 16:52:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natumbri";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Mp8eCVNGokJRwmYiZYCYRwV1QVDV02Uqfh6fGcPgJss=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2021-10-11 16:52:03 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-10-04 12:37:57 +00:00
|
|
|
beautifulsoup4
|
|
|
|
cachetools
|
2021-10-11 16:52:03 +00:00
|
|
|
pykka
|
|
|
|
requests
|
2021-10-04 12:37:57 +00:00
|
|
|
youtube-dl
|
|
|
|
ytmusicapi
|
2021-10-11 16:52:03 +00:00
|
|
|
] ++ [
|
|
|
|
mopidy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-10-11 16:52:03 +00:00
|
|
|
vcrpy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test requires a YouTube API key
|
|
|
|
"test_get_default_config"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2022-03-30 09:31:56 +00:00
|
|
|
# Disable tests which interact with Youtube
|
|
|
|
"tests/test_api.py"
|
2021-10-11 16:52:03 +00:00
|
|
|
"tests/test_backend.py"
|
2022-03-30 09:31:56 +00:00
|
|
|
"tests/test_youtube.py"
|
2021-10-11 16:52:03 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-11 16:52:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mopidy_youtube"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mopidy extension for playing music from YouTube";
|
2021-10-11 16:52:03 +00:00
|
|
|
homepage = "https://github.com/natumbri/mopidy-youtube";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|