3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/twitch-chat-downloader/default.nix

37 lines
788 B
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.1";
src = fetchPypi {
inherit version;
pname = "tcd";
sha256 = "f9b5ea2ad3badb7deffdd9604368ccb54170cd7929efbaa2d7b534e089ae6338";
};
postPatch = ''
substituteInPlace setup.py --replace "'pipenv>=2020.5.28'," ""
'';
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 ];
};
}