From 67db17ed9080f14d3825f69a33351743706d748e Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 3 Jul 2024 16:11:30 -0400 Subject: [PATCH] mopidy-spotify: modernize - set `pyproject` explicitly - set `build-system` explicitly - propagatedBuildInputs -> dependencies - https://github.com/NixOS/nixpkgs/issues/208242 --- pkgs/applications/audio/mopidy/spotify.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/audio/mopidy/spotify.nix b/pkgs/applications/audio/mopidy/spotify.nix index c47c4f207e5d..b316753c108a 100644 --- a/pkgs/applications/audio/mopidy/spotify.nix +++ b/pkgs/applications/audio/mopidy/spotify.nix @@ -6,9 +6,10 @@ unstableGitUpdater, }: -pythonPackages.buildPythonApplication rec { +pythonPackages.buildPythonApplication { pname = "mopidy-spotify"; version = "4.1.1-unstable-2024-02-27"; + pyproject = true; src = fetchFromGitHub { owner = "mopidy"; @@ -17,21 +18,23 @@ pythonPackages.buildPythonApplication rec { hash = "sha256-RkXDzAbOOll3uCNZ2mFRnjqMkT/NkXOGjywLRTC9i60="; }; - propagatedBuildInputs = [ + build-system = [ pythonPackages.setuptools ]; + + dependencies = [ mopidy pythonPackages.responses ]; - nativeBuildInputs = [ pythonPackages.pytestCheckHook ]; + nativeCheckInputs = [ pythonPackages.pytestCheckHook ]; pythonImportsCheck = [ "mopidy_spotify" ]; passthru.updateScript = unstableGitUpdater { tagPrefix = "v"; }; - 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; [ getchoo ]; + homepage = "https://github.com/mopidy/mopidy-spotify"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ getchoo ]; }; }