Files
nixpkgs/pkgs/development/python-modules/karton-core/default.nix
2025-09-21 00:54:06 +00:00

55 lines
990 B
Nix

{
lib,
aioboto3,
buildPythonPackage,
fetchFromGitHub,
orjson,
pythonOlder,
redis,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "karton-core";
version = "5.9.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = "karton";
tag = "v${version}";
hash = "sha256-m7A7Fbl6VZtgR4+FhmV2T+K6kgHRNtdeyin1uhvw04U=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [
"aioboto3"
"boto3"
];
dependencies = [
aioboto3
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
];
};
}