1{ 2 lib, 3 aioboto3, 4 buildPythonPackage, 5 fetchFromGitHub, 6 orjson, 7 pythonOlder, 8 redis, 9 setuptools, 10 unittestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "karton-core"; 15 version = "5.9.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "CERT-Polska"; 22 repo = "karton"; 23 tag = "v${version}"; 24 hash = "sha256-m7A7Fbl6VZtgR4+FhmV2T+K6kgHRNtdeyin1uhvw04U="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 pythonRelaxDeps = [ 30 "aioboto3" 31 "boto3" 32 ]; 33 34 dependencies = [ 35 aioboto3 36 orjson 37 redis 38 ]; 39 40 nativeCheckInputs = [ unittestCheckHook ]; 41 42 pythonImportsCheck = [ "karton.core" ]; 43 44 meta = with lib; { 45 description = "Distributed malware processing framework"; 46 homepage = "https://karton-core.readthedocs.io/"; 47 changelog = "https://github.com/CERT-Polska/karton/releases/tag/${src.tag}"; 48 license = licenses.bsd3; 49 maintainers = with maintainers; [ 50 chivay 51 fab 52 ]; 53 }; 54}