about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-06-11 18:06:12 -0500
committerGitHub <noreply@github.com>2023-06-11 18:06:12 -0500
commite4aef90d7b9151fb0dddf423b35ebbdd054f35d5 (patch)
tree4d7bd75fbd13efe88638614304af05bca80d981e /pkgs/applications/misc
parentc78b885a8f7d16da7e400a8014090868e3fda136 (diff)
parent12912eb612e86f02f3229dd0bdab589bdc6ed59c (diff)
Merge pull request #234711 from marsam/update-twitch-chat-downloader
twitch-chat-downloader: switch to maintained fork
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/twitch-chat-downloader/default.nix32
1 files 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 779b9ddba63bf..61fb052507127 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 ];
   };