nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aioboto3,
4 buildPythonPackage,
5 fetchFromGitHub,
6 orjson,
7 redis,
8 setuptools,
9 unittestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "karton-core";
14 version = "5.9.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "CERT-Polska";
19 repo = "karton";
20 tag = "v${version}";
21 hash = "sha256-m7A7Fbl6VZtgR4+FhmV2T+K6kgHRNtdeyin1uhvw04U=";
22 };
23
24 build-system = [ setuptools ];
25
26 pythonRelaxDeps = [
27 "aioboto3"
28 "boto3"
29 ];
30
31 dependencies = [
32 aioboto3
33 orjson
34 redis
35 ];
36
37 nativeCheckInputs = [ unittestCheckHook ];
38
39 pythonImportsCheck = [ "karton.core" ];
40
41 meta = {
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 = lib.licenses.bsd3;
46 maintainers = with lib.maintainers; [
47 chivay
48 fab
49 ];
50 };
51}