about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/twitch-chat-downloader/default.nix
blob: a8ffb46c1f88a28a20e8a809dd631e947dc1d740 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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 ];
  };
}