2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, karton-core
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
2021-04-15 00:37:46 +00:00
|
|
|
, yara-python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-yaramatcher";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.3.0";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-URGW8FyJZ3ktrwolls5ElSWn8FD6vWCA+Eu0aGtPh6U=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
karton-core
|
|
|
|
yara-python
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"karton.yaramatcher"
|
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "File and analysis artifacts yara matcher for the Karton framework";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "karton-yaramatcher";
|
2021-04-15 00:37:46 +00:00
|
|
|
homepage = "https://github.com/CERT-Polska/karton-yaramatcher";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/karton-yaramatcher/releases/tag/v${version}";
|
2021-04-15 00:37:46 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|