mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 16:30:11 +00:00
Robust streaming log template miner based on the Drain algorithm https://github.com/logpai/Drain3
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cachetools,
|
|
fetchFromGitHub,
|
|
jsonpickle,
|
|
kafka-python,
|
|
nix-update-script,
|
|
pytestCheckHook,
|
|
redis,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "drain3";
|
|
version = "0.9.11";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "logpai";
|
|
repo = "Drain3";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-WLsBoCAW7g4Ofoo88u3wncb9AtohKwLzGR50sVVKd/M=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"cachetools"
|
|
"jsonpickle"
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cachetools
|
|
jsonpickle
|
|
kafka-python
|
|
redis
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "drain3" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Robust streaming log template miner based on the Drain algorithm";
|
|
homepage = "https://github.com/logpai/Drain3";
|
|
changelog = "https://github.com/logpai/Drain3/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|