nixpkgs/pkgs/applications/misc/twitch-chat-downloader/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.0 KiB
Nix
Raw Normal View History

2021-02-10 04:20:00 +00:00
{ lib
, buildPythonApplication
, fetchPypi
, requests
, twitch-python
, pytz
, python-dateutil
}:
buildPythonApplication rec {
pname = "twitch-chat-downloader";
version = "3.2.2";
2021-02-10 04:20:00 +00:00
src = fetchPypi {
inherit version;
pname = "tcd";
sha256 = "ee6a8e22c54ccfd29988554b13fe56b2a1bf524e110fa421d77e27baa8dcaa19";
2021-02-10 04:20:00 +00:00
};
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"
2021-02-10 04:20:00 +00:00
'';
propagatedBuildInputs = [ requests twitch-python pytz python-dateutil ];
doCheck = false; # no tests
pythonImportsCheck = [ "tcd" ];
meta = with lib; {
description = "Twitch Chat Downloader";
homepage = "https://github.com/PetterKraabol/Twitch-Chat-Downloader";
license = licenses.mit;
maintainers = with maintainers; [ marsam ];
};
}