33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
45 lines
996 B
Nix
45 lines
996 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, isodate
|
|
, docstring-parser
|
|
, colorlog
|
|
, websocket-client
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chat-downloader";
|
|
version = "0.2.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit version pname;
|
|
sha256 = "e19f961480b14b55d03d4d4aaa766d46131bdf2ea8a79b47d20037dfd980201a";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|