2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, karton-core
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2021-04-15 00:37:46 +00:00
|
|
|
, yara-python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-yaramatcher";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.2.0";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-ulWwPXbjqQXwSRi8MFdcx7vC7P19yu66Ll8jkuTesao=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
karton-core
|
|
|
|
yara-python
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "karton.yaramatcher" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "File and analysis artifacts yara matcher for the Karton framework";
|
|
|
|
homepage = "https://github.com/CERT-Polska/karton-yaramatcher";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|