nixpkgs/pkgs/applications/misc/twitch-chat-downloader/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

40 lines
877 B
Nix

{ lib
, buildPythonApplication
, fetchPypi
, iso8601
, progressbar2
, requests
}:
buildPythonApplication rec {
pname = "twitch-chat-downloader";
version = "2.5.3";
# NOTE: Using maintained fork because upstream has stopped working, and it has
# not been updated in a while.
# https://github.com/PetterKraabol/Twitch-Chat-Downloader/issues/142
src = fetchPypi {
inherit version;
pname = "tdh-tcd";
sha256 = "sha256-dvj0HoF/2n5aQGMOD8UYY4EZegQwThPy1XJFvXyRT4Q=";
};
propagatedBuildInputs = [
iso8601
progressbar2
requests
];
doCheck = false; # no tests
pythonImportsCheck = [ "tcd" ];
meta = with lib; {
description = "Twitch Chat Downloader";
mainProgram = "tcd";
homepage = "https://github.com/TheDrHax/Twitch-Chat-Downloader";
license = licenses.mit;
maintainers = with maintainers; [ marsam ];
};
}