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