1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

toolong: init at 1.4.0

This commit is contained in:
Sigmanificient 2024-07-17 06:01:59 +02:00
parent aa28fa2be9
commit f537106418

View file

@ -0,0 +1,45 @@
{
lib,
python311Packages,
fetchFromGitHub,
testers,
toolong,
}:
python311Packages.buildPythonApplication rec {
pname = "toolong";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Textualize";
repo = "toolong";
rev = "refs/tags/v${version}";
hash = "sha256-Zd6j1BIrsLJqptg7BXb67qY3DaeHRHieWJoYYCDHaoc=";
};
build-system = [ python311Packages.poetry-core ];
dependencies = with python311Packages; [
click
textual
typing-extensions
];
pythonRelaxDeps = [ "textual" ];
pythonImportsCheck = [ "toolong" ];
doCheck = false; # no tests
passthru.tests.version = testers.testVersion {
package = toolong;
command = "${lib.getExe toolong} --version";
};
meta = with lib; {
description = "Terminal application to view, tail, merge, and search log files (plus JSONL)";
license = licenses.mit;
homepage = "https://github.com/textualize/toolong";
maintainers = with maintainers; [ sigmanificient ];
mainProgram = "tl";
};
}