1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 karton-core, 6 unittestCheckHook, 7 pythonOlder, 8 yara-python, 9}: 10 11buildPythonPackage rec { 12 pname = "karton-yaramatcher"; 13 version = "1.3.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "CERT-Polska"; 20 repo = "karton-yaramatcher"; 21 tag = "v${version}"; 22 hash = "sha256-URGW8FyJZ3ktrwolls5ElSWn8FD6vWCA+Eu0aGtPh6U="; 23 }; 24 25 propagatedBuildInputs = [ 26 karton-core 27 yara-python 28 ]; 29 30 nativeCheckInputs = [ unittestCheckHook ]; 31 32 pythonImportsCheck = [ "karton.yaramatcher" ]; 33 34 meta = with lib; { 35 description = "File and analysis artifacts yara matcher for the Karton framework"; 36 mainProgram = "karton-yaramatcher"; 37 homepage = "https://github.com/CERT-Polska/karton-yaramatcher"; 38 changelog = "https://github.com/CERT-Polska/karton-yaramatcher/releases/tag/v${version}"; 39 license = with licenses; [ bsd3 ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}