diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/chat-downloader/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/chat-downloader/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/chat-downloader/default.nix b/nixpkgs/pkgs/development/python-modules/chat-downloader/default.nix new file mode 100644 index 000000000000..13434cc86d05 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/chat-downloader/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +, isodate +, docstring-parser +, colorlog +, websocket-client +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "chat-downloader"; + version = "0.2.8"; + format = "setuptools"; + + src = fetchPypi { + inherit version pname; + hash = "sha256-WBasBhefgRkOdMdz2K/agvS+cY6m3/33wiu+Jl4d1Cg="; + }; + + 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 ]; + }; +} |