Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, boto3 3, buildPythonPackage 4, fetchFromGitHub 5, unittestCheckHook 6, pythonOlder 7, redis 8}: 9 10buildPythonPackage rec { 11 pname = "karton-core"; 12 version = "5.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "CERT-Polska"; 19 repo = "karton"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-TKO0l0AKsC9MMB58ao/EXcJ9k/J3y3S9tc127H7vA6w="; 22 }; 23 24 propagatedBuildInputs = [ 25 boto3 26 redis 27 ]; 28 29 nativeCheckInputs = [ 30 unittestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "karton.core" 35 ]; 36 37 meta = with lib; { 38 description = "Distributed malware processing framework"; 39 homepage = "https://karton-core.readthedocs.io/"; 40 changelog = "https://github.com/CERT-Polska/karton/releases/tag/v${version}"; 41 license = licenses.bsd3; 42 maintainers = with maintainers; [ chivay fab ]; 43 }; 44}