From 12912eb612e86f02f3229dd0bdab589bdc6ed59c Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 27 May 2023 04:20:00 +0000 Subject: [PATCH] twitch-chat-downloader: switch to maintained fork Switch to maintained fork because upstream has stopped working. I did read all the changes made by the fork, and it seems to be safe to switch. --- .../misc/twitch-chat-downloader/default.nix | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/pkgs/applications/misc/twitch-chat-downloader/default.nix b/pkgs/applications/misc/twitch-chat-downloader/default.nix index 779b9ddba63b..61fb05250712 100644 --- a/pkgs/applications/misc/twitch-chat-downloader/default.nix +++ b/pkgs/applications/misc/twitch-chat-downloader/default.nix @@ -1,33 +1,29 @@ { lib , buildPythonApplication , fetchPypi +, iso8601 +, progressbar2 , requests -, twitch-python -, pytz -, python-dateutil }: buildPythonApplication rec { pname = "twitch-chat-downloader"; - version = "3.2.2"; + version = "2.5.3"; + # NOTE: Using maintained fork because upstream has stopped working, and it has + # not been updated in a while. + # https://github.com/PetterKraabol/Twitch-Chat-Downloader/issues/142 src = fetchPypi { inherit version; - pname = "tcd"; - sha256 = "ee6a8e22c54ccfd29988554b13fe56b2a1bf524e110fa421d77e27baa8dcaa19"; + pname = "tdh-tcd"; + sha256 = "sha256-dvj0HoF/2n5aQGMOD8UYY4EZegQwThPy1XJFvXyRT4Q="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "'pipenv==2022.4.30'," "" \ - --replace "setuptools==62.1." "setuptools" \ - --replace "requests==2.27.1" "requests" \ - --replace "twitch-python==0.0.20" "twitch-python" \ - --replace "pytz==2022.1" "pytz" \ - --replace "python-dateutil==2.8.2" "python-dateutil" - ''; - - propagatedBuildInputs = [ requests twitch-python pytz python-dateutil ]; + propagatedBuildInputs = [ + iso8601 + progressbar2 + requests + ]; doCheck = false; # no tests @@ -35,7 +31,7 @@ buildPythonApplication rec { meta = with lib; { description = "Twitch Chat Downloader"; - homepage = "https://github.com/PetterKraabol/Twitch-Chat-Downloader"; + homepage = "https://github.com/TheDrHax/Twitch-Chat-Downloader"; license = licenses.mit; maintainers = with maintainers; [ marsam ]; };