mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
5d435189df
Diff: https://github.com/fox-it/flow.record/compare/refs/tags/3.11...3.12 Changelog: https://github.com/fox-it/flow.record/releases/tag/3.12
80 lines
1.5 KiB
Nix
80 lines
1.5 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, elasticsearch
|
|
, fastavro
|
|
, fetchFromGitHub
|
|
, lz4
|
|
, msgpack
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
, wheel
|
|
, zstandard
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flow-record";
|
|
version = "3.12";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fox-it";
|
|
repo = "flow.record";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-b9MCgs3Imo0DHtPyvQuRgYvsLWe8N2Y9TIWdU1E04L8=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
msgpack
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
compression = [
|
|
lz4
|
|
zstandard
|
|
];
|
|
elastic = [
|
|
elasticsearch
|
|
];
|
|
avro = [
|
|
fastavro
|
|
] ++ fastavro.optional-dependencies.snappy;
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ lib.flatten (builtins.attrValues passthru.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/${version}";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|