lol

ytmdl: 2021.06.26 -> 2021.08.01

+13 -24
+13 -24
pkgs/tools/misc/ytmdl/default.nix
··· 1 1 { lib 2 - , fetchFromGitHub 3 - , python3 4 - , fetchpatch 2 + , python3Packages 5 3 , ffmpeg 6 4 }: 7 5 8 - python3.pkgs.buildPythonApplication rec { 6 + python3Packages.buildPythonApplication rec { 9 7 pname = "ytmdl"; 10 - version = "2021.06.26"; 8 + version = "2021.08.01"; 11 9 12 - src = fetchFromGitHub { 13 - owner = "deepjyoti30"; 14 - repo = pname; 15 - rev = version; 16 - sha256 = "1jpd5zhqg2m9vjjjw4mgzb594q1v1pq1yl65py6kw42bq9w5yl5p"; 10 + src = python3Packages.fetchPypi { 11 + inherit pname; 12 + version = builtins.replaceStrings [ ".0" ] [ "." ] version; 13 + sha256 = "f5ef23dcba89aaf2307baf4ffc2326dc5c02324f646e5e5748219ed328202af4"; 17 14 }; 18 15 19 - patches = [ 20 - # Fixes https://github.com/deepjyoti30/ytmdl/issues/188 21 - # Only needed until the next major release after 2021.06.26 22 - (fetchpatch { 23 - url = "https://github.com/deepjyoti30/ytmdl/commit/37ba821d9692249c1fa563505cf60bd11b8e209e.patch"; 24 - includes = [ "bin/ytmdl" ]; 25 - sha256 = "sha256-VqtthpUL0Oub3DK7tSvAnemOzPPTcLvXXeebZIGOgdc="; 26 - }) 27 - ]; 28 - 29 16 postPatch = '' 30 17 substituteInPlace setup.py \ 31 - --replace "bs4" "beautifulsoup4" 18 + --replace "bs4" "beautifulsoup4" \ 19 + --replace "/etc/bash_completion.d" "share/bash-completion/completions" \ 20 + --replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions" 32 21 ''; 33 22 34 - 35 - propagatedBuildInputs = with python3.pkgs; [ 23 + propagatedBuildInputs = with python3Packages; [ 36 24 ffmpeg-python 37 25 musicbrainzngs 38 26 rich 39 27 simber 40 28 pydes 41 - youtube-search 29 + youtube-search-python 42 30 unidecode 43 31 pyxdg 44 32 downloader-cli ··· 48 36 pysocks 49 37 youtube-dl 50 38 ytmusicapi 39 + spotipy 51 40 ]; 52 41 53 42 makeWrapperArgs = [