1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, minio 5, python 6, redis 7}: 8 9buildPythonPackage rec { 10 pname = "karton-core"; 11 version = "4.3.0"; 12 13 src = fetchFromGitHub { 14 owner = "CERT-Polska"; 15 repo = "karton"; 16 rev = "v${version}"; 17 sha256 = "sha256-pIYDY+pie4xqH11UHBal7/+MVmJDgNCFVpSD9we9ZPA="; 18 }; 19 20 propagatedBuildInputs = [ minio redis ]; 21 22 checkPhase = '' 23 runHook preCheck 24 ${python.interpreter} -m unittest discover 25 runHook postCheck 26 ''; 27 28 meta = with lib; { 29 description = "Distributed malware processing framework"; 30 homepage = "https://karton-core.readthedocs.io/"; 31 maintainers = with maintainers; [ chivay ]; 32 license = licenses.bsd3; 33 }; 34}