Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-07-17 06:01:59 +02:00
{
lib,
2025-05-30 01:08:22 +02:00
python3Packages,
2024-07-17 06:01:59 +02:00
fetchFromGitHub,
testers,
toolong,
}:
2025-05-30 01:08:22 +02:00
python3Packages.buildPythonApplication {
2024-07-17 06:01:59 +02:00
pname = "toolong";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Textualize";
repo = "toolong";
2025-03-07 21:06:34 +01:00
rev = "5aa22ee878026f46d4d265905c4e1df4d37842ae"; # no tag
hash = "sha256-HrmU7HxWKYrbV25Y5CHLw7/7tX8Y5mTsTL1aXGGTSIo=";
2024-07-17 06:01:59 +02:00
};
2025-05-30 01:08:22 +02:00
build-system = [ python3Packages.poetry-core ];
dependencies = with python3Packages; [
2024-07-17 06:01:59 +02:00
click
textual
typing-extensions
];
pythonRelaxDeps = [ "textual" ];
pythonImportsCheck = [ "toolong" ];
doCheck = false; # no tests
# From https://github.com/Textualize/toolong/pull/63, also fixes https://github.com/NixOS/nixpkgs/issues/360671
patches = [ ./0001-log-view.patch ];
2024-07-17 06:01:59 +02:00
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";
};
}