about summary refs log tree commit diff
path: root/pkgs/development/python-modules/karton-core/default.nix
blob: d4e95481327bb8a1ccfe327efa970924fcfc8edf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, boto3
, buildPythonPackage
, fetchFromGitHub
, python
, redis
}:

buildPythonPackage rec {
  pname = "karton-core";
  version = "5.0.0";

  src = fetchFromGitHub {
    owner = "CERT-Polska";
    repo = "karton";
    rev = "refs/tags/v${version}";
    hash = "sha256-0B2u2xnrGc3iQ8B9iAQ3fcovQQCPqdFsn5evgdDwg5M=";
  };

  propagatedBuildInputs = [
    boto3
    redis
  ];

  checkPhase = ''
    runHook preCheck
    ${python.interpreter} -m unittest discover
    runHook postCheck
  '';

  pythonImportsCheck = [
    "karton.core"
  ];

  meta = with lib; {
    description = "Distributed malware processing framework";
    homepage = "https://karton-core.readthedocs.io/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ chivay fab ];
  };
}