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