Files
nixpkgs/pkgs/development/python-modules/karton-core/default.nix
2025-05-18 16:10:44 +00:00

52 lines
963 B
Nix

{
lib,
boto3,
buildPythonPackage,
fetchFromGitHub,
orjson,
pythonOlder,
redis,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "karton-core";
version = "5.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = "karton";
tag = "v${version}";
hash = "sha256-XmhOPtgrK5rgnYsm5cj1kjJw/yClskVCT6RpDIepbvc=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "boto3" ];
dependencies = [
boto3
orjson
redis
];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "karton.core" ];
meta = with lib; {
description = "Distributed malware processing framework";
homepage = "https://karton-core.readthedocs.io/";
changelog = "https://github.com/CERT-Polska/karton/releases/tag/${src.tag}";
license = licenses.bsd3;
maintainers = with maintainers; [
chivay
fab
];
};
}