Skip to content

Commit

Permalink
Merge pull request #119082 from chivay/karton-core
Browse files Browse the repository at this point in the history
pythonPackages.karton-core: init at 4.2.0
  • Loading branch information
fabaff committed Apr 11, 2021
2 parents 6f300da + fac3725 commit 20443c3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -1707,6 +1707,12 @@
githubId = 3086255;
name = "Barry Moore II";
};
chivay = {
email = "hubert.jasudowicz@gmail.com";
github = "chivay";
githubId = 14790226;
name = "Hubert Jasudowicz";
};
chkno = {
email = "chuck@intelligence.org";
github = "chkno";
Expand Down
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/karton-core/default.nix
@@ -0,0 +1,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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -3667,6 +3667,8 @@ in {

kaptan = callPackage ../development/python-modules/kaptan { };

karton-core = callPackage ../development/python-modules/karton-core { };

kazoo = callPackage ../development/python-modules/kazoo { };

kconfiglib = callPackage ../development/python-modules/kconfiglib { };
Expand Down

0 comments on commit 20443c3

Please sign in to comment.