3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #234711 from marsam/update-twitch-chat-downloader

twitch-chat-downloader: switch to maintained fork
This commit is contained in:
Mario Rodas 2023-06-11 18:06:12 -05:00 committed by GitHub
commit e4aef90d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};