python311Packages.flow-record: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-05-08 00:54:17 +02:00
parent 0676b7aea3
commit 6457221e88

View File

@ -1,15 +1,16 @@
{ lib {
, buildPythonPackage lib,
, elasticsearch buildPythonPackage,
, fastavro elasticsearch,
, fetchFromGitHub fastavro,
, lz4 fetchFromGitHub,
, msgpack lz4,
, pytest7CheckHook msgpack,
, pythonOlder pytest7CheckHook,
, setuptools pythonOlder,
, setuptools-scm setuptools,
, zstandard setuptools-scm,
zstandard,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -31,39 +32,29 @@ buildPythonPackage rec {
setuptools-scm setuptools-scm
]; ];
dependencies = [ dependencies = [ msgpack ];
msgpack
];
passthru.optional-dependencies = { passthru.optional-dependencies = {
compression = [ compression = [
lz4 lz4
zstandard zstandard
]; ];
elastic = [ elastic = [ elasticsearch ];
elasticsearch avro = [ fastavro ] ++ fastavro.optional-dependencies.snappy;
];
avro = [
fastavro
] ++ fastavro.optional-dependencies.snappy;
}; };
nativeCheckInputs = [ nativeCheckInputs = [
pytest7CheckHook pytest7CheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ pythonImportsCheck = [ "flow.record" ];
"flow.record"
];
disabledTestPaths = [ disabledTestPaths = [
# Test requires rdump # Test requires rdump
"tests/test_rdump.py" "tests/test_rdump.py"
]; ];
disabledTests = [ disabledTests = [ "test_rdump_fieldtype_path_json" ];
"test_rdump_fieldtype_path_json"
];
meta = with lib; { meta = with lib; {
description = "Library for defining and creating structured data"; description = "Library for defining and creating structured data";