From 6457221e8840e2f05a9b9aa3fe3fd821778f105c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 May 2024 00:54:17 +0200 Subject: [PATCH] python311Packages.flow-record: format with nixfmt --- .../python-modules/flow-record/default.nix | 45 ++++++++----------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/pkgs/development/python-modules/flow-record/default.nix b/pkgs/development/python-modules/flow-record/default.nix index 730842f880cf..d9c61a791615 100644 --- a/pkgs/development/python-modules/flow-record/default.nix +++ b/pkgs/development/python-modules/flow-record/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, elasticsearch -, fastavro -, fetchFromGitHub -, lz4 -, msgpack -, pytest7CheckHook -, pythonOlder -, setuptools -, setuptools-scm -, zstandard +{ + lib, + buildPythonPackage, + elasticsearch, + fastavro, + fetchFromGitHub, + lz4, + msgpack, + pytest7CheckHook, + pythonOlder, + setuptools, + setuptools-scm, + zstandard, }: buildPythonPackage rec { @@ -31,39 +32,29 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - msgpack - ]; + dependencies = [ msgpack ]; passthru.optional-dependencies = { compression = [ lz4 zstandard ]; - elastic = [ - elasticsearch - ]; - avro = [ - fastavro - ] ++ fastavro.optional-dependencies.snappy; + elastic = [ elasticsearch ]; + avro = [ fastavro ] ++ fastavro.optional-dependencies.snappy; }; nativeCheckInputs = [ pytest7CheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "flow.record" - ]; + pythonImportsCheck = [ "flow.record" ]; disabledTestPaths = [ # Test requires rdump "tests/test_rdump.py" ]; - disabledTests = [ - "test_rdump_fieldtype_path_json" - ]; + disabledTests = [ "test_rdump_fieldtype_path_json" ]; meta = with lib; { description = "Library for defining and creating structured data";