depot/third_party/nixpkgs/pkgs/development/python-modules/chat-downloader/default.nix

45 lines
996 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, requests
, isodate
, docstring-parser
, colorlog
, websocket-client
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "chat-downloader";
version = "0.2.4";
format = "setuptools";
src = fetchPypi {
inherit version pname;
sha256 = "beeaedbe7d28e22f8a2c635fc6432f9e9af84e3c2a6ecff101f4453de1abb385";
};
propagatedBuildInputs = [
requests
isodate
docstring-parser
colorlog
websocket-client
];
# Tests try to access the network.
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];
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";
changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ marsam ];
};
}