@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, minio
5+, python
6+, redis
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "karton-core";
11+ version = "4.2.0";
12+
13+ src = fetchFromGitHub {
14+ owner = "CERT-Polska";
15+ repo = "karton";
16+ rev = "v${version}";
17+ sha256 = "08j1bm9g58576sswcrpfczaki24nlqqaypp7qv1rxxwsyp5pq6h6";
18+ };
19+
20+ propagatedBuildInputs = [ minio redis ];
21+
22+ checkPhase = ''
23+ runHook preCheck
24+ ${python.interpreter} -m unittest discover
25+ runHook postCheck
26+ '';
27+
28+ meta = with lib; {
29+ description = "Distributed malware processing framework";
30+ homepage = "https://karton-core.readthedocs.io/";
31+ maintainers = with maintainers; [ chivay ];
32+ license = licenses.bsd3;
33+ };
34+}