Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
pythonPackages,
|
|
mopidy,
|
|
nix-update-script,
|
|
}:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "mopidy-spotify";
|
|
version = "5.0.0a2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mopidy";
|
|
repo = "mopidy-spotify";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-QeABG9rQKJ8sIoK38R74N0s5rRG+zws7AZR0xPysdcY=";
|
|
};
|
|
|
|
build-system = [ pythonPackages.setuptools ];
|
|
|
|
dependencies = [
|
|
mopidy
|
|
pythonPackages.pykka
|
|
pythonPackages.requests
|
|
];
|
|
|
|
optional-dependencies = {
|
|
lint = with pythonPackages; [
|
|
black
|
|
check-manifest
|
|
flake8
|
|
flake8-bugbear
|
|
isort
|
|
];
|
|
|
|
test = with pythonPackages; [
|
|
pytest
|
|
pytest-cov
|
|
responses
|
|
];
|
|
|
|
dev = optional-dependencies.lint ++ optional-dependencies.test ++ [ pythonPackages.tox ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pythonPackages.pytestCheckHook ] ++ optional-dependencies.test;
|
|
|
|
pythonImportsCheck = [ "mopidy_spotify" ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Mopidy extension for playing music from Spotify";
|
|
homepage = "https://github.com/mopidy/mopidy-spotify";
|
|
changelog = "https://github.com/mopidy/mopidy-spotify/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
};
|
|
}
|