mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
03023c3acb
Diff: https://github.com/mopidy/mopidy-spotify/compare/v4.1.1...v5.0.0a2 Changelog: https://github.com/mopidy/mopidy-spotify/releases/tag/v5.0.0a2
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 ];
|
|
};
|
|
}
|