2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-12-02 08:20:57 +00:00
|
|
|
, fetchPypi
|
2022-08-21 13:32:41 +00:00
|
|
|
, requests
|
|
|
|
, isodate
|
|
|
|
, docstring-parser
|
|
|
|
, colorlog
|
|
|
|
, websocket-client
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chat-downloader";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.2.4";
|
2022-12-02 08:20:57 +00:00
|
|
|
format = "setuptools";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "beeaedbe7d28e22f8a2c635fc6432f9e9af84e3c2a6ecff101f4453de1abb385";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
isodate
|
|
|
|
docstring-parser
|
|
|
|
colorlog
|
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests try to access the network.
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "chat_downloader" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts";
|
|
|
|
homepage = "https://github.com/xenova/chat-downloader";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|