From 470913e732230eba7177ec0356e24cf161f86a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 28 Apr 2023 20:03:25 -0700 Subject: [PATCH] spotdl: 4.0.7 -> 4.1.8 Diff: https://github.com/spotDL/spotify-downloader/compare/refs/tags/v4.0.7...v4.1.8 --- pkgs/tools/audio/spotdl/default.nix | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/audio/spotdl/default.nix b/pkgs/tools/audio/spotdl/default.nix index e8ceaee81925..afa22491bf0f 100644 --- a/pkgs/tools/audio/spotdl/default.nix +++ b/pkgs/tools/audio/spotdl/default.nix @@ -4,9 +4,22 @@ , ffmpeg }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + packageOverrides = self: super: { + ytmusicapi = super.ytmusicapi.overridePythonAttrs (old: rec { + version = "0.25.1"; + src = self.fetchPypi { + inherit (old) pname; + inherit version; + hash = "sha256-uc/fgDetSYaCRzff0SzfbRhs3TaKrfE2h6roWkkj8yQ="; + }; + }); + }; + }; +in python.pkgs.buildPythonApplication rec { pname = "spotdl"; - version = "4.0.7"; + version = "4.1.8"; format = "pyproject"; @@ -14,17 +27,17 @@ python3.pkgs.buildPythonApplication rec { owner = "spotDL"; repo = "spotify-downloader"; rev = "refs/tags/v${version}"; - hash = "sha256-+hkdrPi3INs16SeAl+iXOE9KFDzG/TYXB3CDd8Tigwk="; + hash = "sha256-iE5d9enSbONqVxKW7H7N+1TmBp6nVGtiQvxJxV7R/1o="; }; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ poetry-core pythonRelaxDepsHook ]; pythonRelaxDeps = true; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ spotipy ytmusicapi pytube @@ -41,9 +54,11 @@ python3.pkgs.buildPythonApplication rec { platformdirs pykakasi syncedlyrics + typing-extensions + setuptools # for pkg_resources ]; - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python.pkgs; [ pytestCheckHook pytest-mock pytest-vcr