nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, minio
5, python
6, redis
7}:
8
9buildPythonPackage rec {
10 pname = "karton-core";
11 version = "4.4.1";
12
13 src = fetchFromGitHub {
14 owner = "CERT-Polska";
15 repo = "karton";
16 rev = "refs/tags/v${version}";
17 sha256 = "sha256-smgKrFexuL0bgt/1Ikm1tpSGPJNJm7Ko68iZn3AQw5E=";
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}