1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 isodate,
7 docstring-parser,
8 colorlog,
9 websocket-client,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "chat-downloader";
15 version = "0.2.8";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit version pname;
20 hash = "sha256-WBasBhefgRkOdMdz2K/agvS+cY6m3/33wiu+Jl4d1Cg=";
21 };
22
23 propagatedBuildInputs = [
24 requests
25 isodate
26 docstring-parser
27 colorlog
28 websocket-client
29 ];
30
31 # Tests try to access the network.
32 doCheck = false;
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "chat_downloader" ];
37
38 meta = with lib; {
39 description = "Simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts";
40 mainProgram = "chat_downloader";
41 homepage = "https://github.com/xenova/chat-downloader";
42 changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = [ ];
45 };
46}