Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 86 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, buildPythonPackage, duckdb, elastic-transport, elasticsearch, fastavro, fetchFromGitHub, httpx, lz4, maxminddb, msgpack, pytest7CheckHook, pytz, setuptools-scm, setuptools, structlog, tqdm, zstandard,}:
buildPythonPackage rec { pname = "flow-record"; version = "3.21"; pyproject = true;
src = fetchFromGitHub { owner = "fox-it"; repo = "flow.record"; tag = version; hash = "sha256-hJZCWF81pMeHOZGc6zTA046hV1J0PNQGMlPD3mgyrRI="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ msgpack ];
optional-dependencies = { compression = [ lz4 zstandard ]; duckdb = [ duckdb pytz ]; elastic = [ elasticsearch ]; geoip = [ maxminddb ]; avro = [ fastavro ] ++ fastavro.optional-dependencies.snappy; splunk = [ httpx ]; # xlsx = [ openpyxl ]; # Not available full = [ structlog tqdm ] ++ optional-dependencies.compression; };
nativeCheckInputs = [ elastic-transport pytest7CheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "flow.record" ];
disabledTestPaths = [ # Input not available "tests/adapter/test_xlsx.py" # Requires rdump "tests/tools/test_rdump.py" ];
disabledTests = [ "test_rdump_fieldtype_path_json" ];
meta = { description = "Library for defining and creating structured data"; homepage = "https://github.com/fox-it/flow.record"; changelog = "https://github.com/fox-it/flow.record/releases/tag/${src.tag}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ fab ]; };}