ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / flow-record / default.nix
blobcf75588e20bde041a3bf263db6ad02375b989272
1 { lib
2 , buildPythonPackage
3 , elasticsearch
4 , fetchFromGitHub
5 , lz4
6 , msgpack
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
10 , setuptools-scm
11 , zstandard
14 buildPythonPackage rec {
15   pname = "flow-record";
16   version = "3.5";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "fox-it";
23     repo = "flow.record";
24     rev = version;
25     hash = "sha256-hULz5pIqCKujVH3SpzFgzNM9R7WTtqAmuNOxG7VlUd0=";
26   };
28   SETUPTOOLS_SCM_PRETEND_VERSION = version;
30   nativeBuildInputs = [
31     setuptools
32     setuptools-scm
33   ];
35   propagatedBuildInputs = [
36     msgpack
37   ];
39   passthru.optional-dependencies = {
40     compression = [
41       lz4
42       zstandard
43     ];
44     elastic = [
45       elasticsearch
46     ];
47   };
49   checkInputs = [
50     pytestCheckHook
51   ];
53   pythonImportsCheck = [
54     "flow.record"
55   ];
57   disabledTestPaths = [
58     # Test requires rdump
59     "tests/test_rdump.py"
60   ];
62   meta = with lib; {
63     description = "Library for defining and creating structured data";
64     homepage = "https://github.com/fox-it/flow.record";
65     license = licenses.agpl3Only;
66     maintainers = with maintainers; [ fab ];
67   };