diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-04-01 18:17:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 18:17:25 +0200 |
commit | 8324a3df39648303bf978d6909683a3a4da57478 (patch) | |
tree | c9a73393de7daf59598aed4fb7862329fdc7941b /pkgs/tools/audio | |
parent | ac337fd4cbfe5ce5bf771ab4bccb36aca9cbfb10 (diff) | |
parent | 59c1caf6d5dab7a5979976a43f56ce9c74124503 (diff) | |
download | nixlib-8324a3df39648303bf978d6909683a3a4da57478.tar nixlib-8324a3df39648303bf978d6909683a3a4da57478.tar.gz nixlib-8324a3df39648303bf978d6909683a3a4da57478.tar.bz2 nixlib-8324a3df39648303bf978d6909683a3a4da57478.tar.lz nixlib-8324a3df39648303bf978d6909683a3a4da57478.tar.xz nixlib-8324a3df39648303bf978d6909683a3a4da57478.tar.zst nixlib-8324a3df39648303bf978d6909683a3a4da57478.zip |
Merge pull request #117782 from dotlambda/spotdl-init
spotdl: init at 3.5.0
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r-- | pkgs/tools/audio/spotdl/default.nix | 47 |
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 ]; + }; +} |