2021-10-10 09:46:31 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, mopidy
|
|
|
|
}:
|
2015-12-15 02:19:58 +00:00
|
|
|
|
2021-10-10 09:46:31 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-06-23 13:27:58 +00:00
|
|
|
pname = "mopidy-youtube";
|
2022-07-09 06:47:58 +00:00
|
|
|
version = "3.6";
|
2022-03-24 19:55:32 +00:00
|
|
|
format = "setuptools";
|
2015-12-15 02:19:58 +00:00
|
|
|
|
2021-10-10 09:46:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natumbri";
|
|
|
|
repo = pname;
|
2022-07-09 06:47:58 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Mp8eCVNGokJRwmYiZYCYRwV1QVDV02Uqfh6fGcPgJss=";
|
2021-10-10 09:46:31 +00:00
|
|
|
};
|
2020-01-24 09:27:35 +00:00
|
|
|
|
2021-10-10 09:46:31 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-10-03 14:16:12 +00:00
|
|
|
beautifulsoup4
|
|
|
|
cachetools
|
2021-10-10 09:46:31 +00:00
|
|
|
pykka
|
|
|
|
requests
|
2021-10-03 14:16:12 +00:00
|
|
|
youtube-dl
|
|
|
|
ytmusicapi
|
2021-10-10 09:46:31 +00:00
|
|
|
] ++ [
|
|
|
|
mopidy
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-03-24 19:55:32 +00:00
|
|
|
vcrpy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test requires a YouTube API key
|
|
|
|
"test_get_default_config"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Disable tests which interact with Youtube
|
|
|
|
"tests/test_api.py"
|
|
|
|
"tests/test_backend.py"
|
|
|
|
"tests/test_youtube.py"
|
|
|
|
];
|
2015-12-15 02:19:58 +00:00
|
|
|
|
2021-10-10 09:46:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mopidy_youtube"
|
|
|
|
];
|
2015-12-15 02:19:58 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-12-15 02:19:58 +00:00
|
|
|
description = "Mopidy extension for playing music from YouTube";
|
2021-10-10 09:46:31 +00:00
|
|
|
homepage = "https://github.com/natumbri/mopidy-youtube";
|
2015-12-15 02:19:58 +00:00
|
|
|
license = licenses.asl20;
|
2021-10-10 09:46:31 +00:00
|
|
|
maintainers = with maintainers; [ spwhitt ];
|
2015-12-15 02:19:58 +00:00
|
|
|
};
|
|
|
|
}
|