about summary refs log tree commit diff
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-03-27 13:30:21 +0100
committerRobert Schütz <dev@schuetz-co.de>2021-03-28 16:53:31 +0200
commit59c1caf6d5dab7a5979976a43f56ce9c74124503 (patch)
treec6f4c52127122a39c487e9a829e272e2f7d0929c /pkgs/tools/audio
parent57497a9a41d778f636c58cf42ccfad7bb886bfee (diff)
downloadnixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.tar
nixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.tar.gz
nixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.tar.bz2
nixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.tar.lz
nixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.tar.xz
nixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.tar.zst
nixlib-59c1caf6d5dab7a5979976a43f56ce9c74124503.zip
spotdl: init at 3.5.0
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/spotdl/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/audio/spotdl/default.nix b/pkgs/tools/audio/spotdl/default.nix
new file mode 100644
index 000000000000..520af8404aeb
--- /dev/null
+++ b/pkgs/tools/audio/spotdl/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, python3
+, fetchFromGitHub
+, ffmpeg
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "spotdl";
+  version = "3.5.0";
+
+  src = fetchFromGitHub {
+    owner = "spotDL";
+    repo = "spotify-downloader";
+    rev = "v${version}";
+    sha256 = "1nxf911hi578jw24hlcvyy33z1pkvr41pfrywbs3157rj1fj2vfi";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    spotipy
+    pytube
+    rich
+    rapidfuzz
+    mutagen
+    ytmusicapi
+    tqdm
+    beautifulsoup4
+    requests
+  ];
+
+  checkInputs = with python3.pkgs; [
+    pytestCheckHook
+    pytest-mock
+    pytest-vcr
+    pyfakefs
+  ];
+
+  makeWrapperArgs = [
+    "--prefix" "PATH" ":" (lib.makeBinPath [ ffmpeg ])
+  ];
+
+  meta = with lib; {
+    description = "Download your Spotify playlists and songs along with album art and metadata";
+    homepage = "https://github.com/spotDL/spotify-downloader";
+    license = licenses.mit;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}