summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-04-28 20:03:25 -0700
committerRobert Schütz <nix@dotlambda.de>2023-04-28 20:09:58 -0700
commit470913e732230eba7177ec0356e24cf161f86a1c (patch)
tree9c6dee26ee1f2aba7b0250cc8fb0f71ac1b76b35
parent67283e1d3ac869492b5559f0dfdf1e8bd477bbb7 (diff)
downloadnixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.tar
nixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.tar.gz
nixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.tar.bz2
nixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.tar.lz
nixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.tar.xz
nixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.tar.zst
nixpkgs-470913e732230eba7177ec0356e24cf161f86a1c.zip
spotdl: 4.0.7 -> 4.1.8
Diff: https://github.com/spotDL/spotify-downloader/compare/refs/tags/v4.0.7...v4.1.8
-rw-r--r--pkgs/tools/audio/spotdl/default.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/tools/audio/spotdl/default.nix b/pkgs/tools/audio/spotdl/default.nix
index e8ceaee8192..afa22491bf0 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