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