2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2023-03-04 12:14:45 +00:00
|
|
|
pname = "yaralyzer";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.9.4";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michelcrypt4d4mus";
|
|
|
|
repo = "yaralyzer";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-rDb09XJOGWNARR0hhQQ91KXWepsLyR2a6/o3jagh6nA=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2023-03-27 19:17:25 +00:00
|
|
|
"python-dotenv"
|
2023-03-04 12:14:45 +00:00
|
|
|
"rich"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = with python3.pkgs; [
|
2023-03-04 12:14:45 +00:00
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2023-03-04 12:14:45 +00:00
|
|
|
chardet
|
|
|
|
python-dotenv
|
|
|
|
rich
|
|
|
|
rich-argparse-plus
|
|
|
|
yara-python
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"yaralyzer"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2023-03-04 12:14:45 +00:00
|
|
|
description = "Tool to visually inspect and force decode YARA and regex matches";
|
|
|
|
homepage = "https://github.com/michelcrypt4d4mus/yaralyzer";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/michelcrypt4d4mus/yaralyzer/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "yaralyze";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|