about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/karton-core/default.nix
blob: b05c6bd343fa8fc7268c3369ace2ecf2055f24de (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, minio
, python
, redis
}:

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

  src = fetchFromGitHub {
    owner = "CERT-Polska";
    repo = "karton";
    rev = "v${version}";
    sha256 = "08j1bm9g58576sswcrpfczaki24nlqqaypp7qv1rxxwsyp5pq6h6";
  };

  propagatedBuildInputs = [ minio redis ];

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

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