1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, karton-core
5, unittestCheckHook
6, yara-python
7}:
8
9buildPythonPackage rec {
10 pname = "karton-yaramatcher";
11 version = "1.2.0";
12
13 src = fetchFromGitHub {
14 owner = "CERT-Polska";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "sha256-ulWwPXbjqQXwSRi8MFdcx7vC7P19yu66Ll8jkuTesao=";
18 };
19
20 propagatedBuildInputs = [
21 karton-core
22 yara-python
23 ];
24
25 checkInputs = [ unittestCheckHook ];
26
27 pythonImportsCheck = [ "karton.yaramatcher" ];
28
29 meta = with lib; {
30 description = "File and analysis artifacts yara matcher for the Karton framework";
31 homepage = "https://github.com/CERT-Polska/karton-yaramatcher";
32 license = with licenses; [ bsd3 ];
33 maintainers = with maintainers; [ fab ];
34 };
35}