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.8.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-OWaGjH9FKv5FOG6ttoT+zvLKcrD4j6y1cSpArtCEn4w=";
25 };
26
27 build-system = [ setuptools ];
28
29 pythonRelaxDeps = [ "boto3" ];
30
31 dependencies = [
32 aioboto3
33 orjson
34 redis
35 ];
36
37 nativeCheckInputs = [ unittestCheckHook ];
38
39 pythonImportsCheck = [ "karton.core" ];
40
41 meta = with lib; {
42 description = "Distributed malware processing framework";
43 homepage = "https://karton-core.readthedocs.io/";
44 changelog = "https://github.com/CERT-Polska/karton/releases/tag/${src.tag}";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [
47 chivay
48 fab
49 ];
50 };
51}