From 2b5f33497035cb7f33fa0f2b32e821d6666fba0c Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Thu, 14 Nov 2024 19:36:04 +0800 Subject: [PATCH] python3Packages.swspotify: fix build (cherry picked from commit 315faf185e952a0e528d211dc1c5dce03d32588e) --- .../python-modules/swspotify/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/swspotify/default.nix b/pkgs/development/python-modules/swspotify/default.nix index 21bd1348525c..7ed844e91d6a 100644 --- a/pkgs/development/python-modules/swspotify/default.nix +++ b/pkgs/development/python-modules/swspotify/default.nix @@ -24,24 +24,29 @@ buildPythonPackage rec { hash = "sha256-xGLvc154xnje45Akf7H1qqQRUc03gGVt8AhGlkcP3kY="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ dbus-python flask flask-cors requests ]; + pythonRelaxDeps = [ + "flask-cors" + "flask" + ]; + # Tests want to use Dbus doCheck = false; pythonImportsCheck = [ "SwSpotify" ]; - meta = with lib; { + meta = { description = "Library to get the currently playing song and artist from Spotify"; homepage = "https://github.com/SwagLyrics/SwSpotify"; - license = licenses.mit; - maintainers = with maintainers; [ siraben ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ siraben ]; }; }