2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
isodate,
|
|
|
|
docstring-parser,
|
|
|
|
colorlog,
|
|
|
|
websocket-client,
|
|
|
|
pytestCheckHook,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chat-downloader";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.2.8";
|
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-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-WBasBhefgRkOdMdz2K/agvS+cY6m3/33wiu+Jl4d1Cg=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "chat_downloader";
|
2022-08-21 13:32:41 +00:00
|
|
|
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;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|