Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / flow-record / default.nix
blob3e836772aa8514cfa98a8baadc373dd112ce5d85
1 { lib
2 , buildPythonPackage
3 , elasticsearch
4 , fastavro
5 , fetchFromGitHub
6 , lz4
7 , msgpack
8 , pytest7CheckHook
9 , pythonOlder
10 , setuptools
11 , setuptools-scm
12 , wheel
13 , zstandard
16 buildPythonPackage rec {
17   pname = "flow-record";
18   version = "3.14";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "fox-it";
25     repo = "flow.record";
26     rev = "refs/tags/${version}";
27     hash = "sha256-8XQeXfrgTk+jHR1ABlEEIn3E/MkUkGnvkgzePws4qhQ=";
28   };
30   nativeBuildInputs = [
31     setuptools
32     setuptools-scm
33     wheel
34   ];
36   propagatedBuildInputs = [
37     msgpack
38   ];
40   passthru.optional-dependencies = {
41     compression = [
42       lz4
43       zstandard
44     ];
45     elastic = [
46       elasticsearch
47     ];
48     avro = [
49       fastavro
50     ] ++ fastavro.optional-dependencies.snappy;
51   };
53   nativeCheckInputs = [
54     pytest7CheckHook
55   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
57   pythonImportsCheck = [
58     "flow.record"
59   ];
61   disabledTestPaths = [
62     # Test requires rdump
63     "tests/test_rdump.py"
64   ];
66   disabledTests = [
67     "test_rdump_fieldtype_path_json"
68   ];
70   meta = with lib; {
71     description = "Library for defining and creating structured data";
72     homepage = "https://github.com/fox-it/flow.record";
73     changelog = "https://github.com/fox-it/flow.record/releases/tag/${version}";
74     license = licenses.agpl3Only;
75     maintainers = with maintainers; [ fab ];
76   };