From 89ba750236345d2c25dccc40c34027853aaa5e26 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 21 Apr 2023 19:31:18 +0200 Subject: [PATCH] Fix spotdl derivation for 4.1.6 --- derivations/spotdl-4_1_6/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/derivations/spotdl-4_1_6/default.nix b/derivations/spotdl-4_1_6/default.nix index 079916cc..35e41bbc 100644 --- a/derivations/spotdl-4_1_6/default.nix +++ b/derivations/spotdl-4_1_6/default.nix @@ -1,10 +1,10 @@ { lib -, python3 +, python310 , fetchFromGitHub , ffmpeg }: -python3.pkgs.buildPythonApplication rec { +python310.pkgs.buildPythonApplication rec { pname = "spotdl"; version = "4.1.6"; format = "pyproject"; @@ -12,18 +12,19 @@ python3.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "spotDL"; repo = "spotify-downloader"; - rev = "refs/tags/v${version}"; - hash = "sha256-0Socf9465+gTogilu5Y91sRC3mPsTNr8X+WZaqp+AdQ="; + rev = "v${version}"; + hash = "sha256-sKkhZqn386iOKkZ3pzz7YxBPNAfEK9M0Agu+yR6+HsA="; }; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python310.pkgs; [ poetry-core pythonRelaxDepsHook ]; pythonRelaxDeps = true; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python310.pkgs; [ + setuptools spotipy ytmusicapi pytube @@ -42,7 +43,7 @@ python3.pkgs.buildPythonApplication rec { syncedlyrics ]; - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python310.pkgs; [ pytestCheckHook pytest-mock pytest-vcr