mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
, mopidy
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "mopidy-youtube";
|
|
version = "3.6";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "natumbri";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Mp8eCVNGokJRwmYiZYCYRwV1QVDV02Uqfh6fGcPgJss=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
beautifulsoup4
|
|
cachetools
|
|
pykka
|
|
requests
|
|
youtube-dl
|
|
ytmusicapi
|
|
] ++ [
|
|
mopidy
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mopidy_youtube"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Mopidy extension for playing music from YouTube";
|
|
homepage = "https://github.com/natumbri/mopidy-youtube";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ spwhitt ];
|
|
};
|
|
}
|