Files
nixpkgs/pkgs/development/python-modules/flow-record/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
duckdb,
elastic-transport,
elasticsearch,
fastavro,
fetchFromGitHub,
httpx,
lz4,
maxminddb,
msgpack,
pytest7CheckHook,
pythonOlder,
pytz,
setuptools-scm,
setuptools,
zstandard,
}:
buildPythonPackage rec {
pname = "flow-record";
version = "3.20";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "fox-it";
repo = "flow.record";
tag = version;
hash = "sha256-3jXxKA+MHjKfzKqOuP0EJxVD5QPvwjWE3N4qhIEFNvM=";
};
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 ];
};
nativeCheckInputs = [
elastic-transport
pytest7CheckHook
]
++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "flow.record" ];
disabledTestPaths = [
# Test requires rdump
"tests/test_rdump.py"
];
disabledTests = [ "test_rdump_fieldtype_path_json" ];
meta = with lib; {
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 = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}