2022-10-07 20:28:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, elasticsearch
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lz4
|
|
|
|
, msgpack
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2022-12-10 16:50:51 +00:00
|
|
|
, wheel
|
2022-10-07 20:28:15 +00:00
|
|
|
, zstandard
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flow-record";
|
2022-12-10 16:50:51 +00:00
|
|
|
version = "3.7";
|
2022-10-07 20:28:15 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fox-it";
|
|
|
|
repo = "flow.record";
|
|
|
|
rev = version;
|
2022-12-10 16:50:51 +00:00
|
|
|
hash = "sha256-bXI7q+unlrXvagKisAO4INfzeXlC4g918xmPmwMDCK8=";
|
2022-10-07 20:28:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2022-12-10 16:50:51 +00:00
|
|
|
wheel
|
2022-10-07 20:28:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
compression = [
|
|
|
|
lz4
|
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
elastic = [
|
|
|
|
elasticsearch
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-07 20:28:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"flow.record"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Test requires rdump
|
|
|
|
"tests/test_rdump.py"
|
|
|
|
];
|
|
|
|
|
2022-12-10 16:50:51 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_rdump_fieldtype_path_json"
|
|
|
|
];
|
|
|
|
|
2022-10-07 20:28:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for defining and creating structured data";
|
|
|
|
homepage = "https://github.com/fox-it/flow.record";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|