mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
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.
This commit is contained in:
parent
3dcca62a5e
commit
12912eb612
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user