Files
nixpkgs/pkgs/development/python-modules/karton-core/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
988 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 = {
description = "Distributed malware processing framework";
homepage = "https://karton-core.readthedocs.io/";
changelog = "https://github.com/CERT-Polska/karton/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
chivay
fab
];
};
}