diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-07 22:28:15 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-07 22:28:15 +0200 |
commit | ffcb18c2edc0024b479dd4972067553b49bf1d62 (patch) | |
tree | 37d0d8a22c1ea07b7002932b6a953a823020c167 /pkgs/development/python-modules/flow-record | |
parent | e899352e76fa93d3acf69f2e305d6f8f320478f2 (diff) |
python310Packages.flow-record: init at 3.5
Diffstat (limited to 'pkgs/development/python-modules/flow-record')
-rw-r--r-- | pkgs/development/python-modules/flow-record/default.nix | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flow-record/default.nix b/pkgs/development/python-modules/flow-record/default.nix new file mode 100644 index 0000000000000..cf75588e20bde --- /dev/null +++ b/pkgs/development/python-modules/flow-record/default.nix @@ -0,0 +1,68 @@ +{ lib +, buildPythonPackage +, elasticsearch +, fetchFromGitHub +, lz4 +, msgpack +, pytestCheckHook +, pythonOlder +, setuptools +, setuptools-scm +, zstandard +}: + +buildPythonPackage rec { + pname = "flow-record"; + version = "3.5"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "fox-it"; + repo = "flow.record"; + rev = version; + hash = "sha256-hULz5pIqCKujVH3SpzFgzNM9R7WTtqAmuNOxG7VlUd0="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + propagatedBuildInputs = [ + msgpack + ]; + + passthru.optional-dependencies = { + compression = [ + lz4 + zstandard + ]; + elastic = [ + elasticsearch + ]; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "flow.record" + ]; + + disabledTestPaths = [ + # Test requires rdump + "tests/test_rdump.py" + ]; + + 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 ]; + }; +} |