python311Packages.flow-record: 3.9 -> 3.10

Changelog: https://github.com/fox-it/flow.record/releases/tag/3.10
This commit is contained in:
Fabian Affolter 2023-05-27 21:11:05 +02:00
parent 901f3e3cad
commit 761b942d44

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, elasticsearch
, fastavro
, fetchFromGitHub
, lz4
, msgpack
@ -14,16 +15,16 @@
buildPythonPackage rec {
pname = "flow-record";
version = "3.9";
version = "3.10";
format = "pyproject";
disabled = pythonOlder "3.9";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "fox-it";
repo = "flow.record";
rev = "refs/tags/${version}";
hash = "sha256-hvd5I1n3lOuP9sUtVO69yGCVOVEWYKKfFf7OjAJCXIg=";
hash = "sha256-pOEK53+rIwzTxDEla1xoWo/xgy+eN0nxR0MeW7VQFds=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -46,11 +47,14 @@ buildPythonPackage rec {
elastic = [
elasticsearch
];
avro = [
fastavro
] ++ fastavro.optional-dependencies.snappy;
};
nativeCheckInputs = [
pytestCheckHook
];
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"flow.record"
@ -61,7 +65,6 @@ buildPythonPackage rec {
"tests/test_rdump.py"
];
disabledTests = [
"test_rdump_fieldtype_path_json"
];