mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #324411 from getchoo/pkgs/mopidy-spotify/adopt
This commit is contained in:
commit
c2bd7f6b2c
@ -1,35 +1,62 @@
|
||||
{ lib, fetchFromGitHub, pythonPackages, mopidy, unstableGitUpdater }:
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
pythonPackages,
|
||||
mopidy,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
pname = "mopidy-spotify";
|
||||
version = "4.1.1-unstable-2024-02-27";
|
||||
version = "5.0.0a2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mopidy";
|
||||
repo = "mopidy-spotify";
|
||||
rev = "112d4abbb3f5b6477dab796f2824fa42196bfa0a";
|
||||
hash = "sha256-RkXDzAbOOll3uCNZ2mFRnjqMkT/NkXOGjywLRTC9i60=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-QeABG9rQKJ8sIoK38R74N0s5rRG+zws7AZR0xPysdcY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ pythonPackages.setuptools ];
|
||||
|
||||
dependencies = [
|
||||
mopidy
|
||||
pythonPackages.responses
|
||||
pythonPackages.pykka
|
||||
pythonPackages.requests
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonPackages.pytestCheckHook
|
||||
];
|
||||
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 = unstableGitUpdater {
|
||||
tagPrefix = "v";
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mopidy/mopidy-spotify";
|
||||
meta = {
|
||||
description = "Mopidy extension for playing music from Spotify";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user