From c0154061868b5d3ad04c024375235cf89c9ed35a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Apr 2024 18:54:01 +0200 Subject: [PATCH] python312Packages.pymodbus: format with nixfmt --- .../python-modules/pymodbus/default.nix | 65 +++++++++---------- 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a/pkgs/development/python-modules/pymodbus/default.nix b/pkgs/development/python-modules/pymodbus/default.nix index 9615efa81751..f85b893c24bb 100644 --- a/pkgs/development/python-modules/pymodbus/default.nix +++ b/pkgs/development/python-modules/pymodbus/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, buildPythonPackage -, click -, fetchFromGitHub -, prompt-toolkit -, pygments -, pyserial -, pytest-asyncio -, pytest-xdist -, pytestCheckHook -, pythonOlder -, redis -, setuptools -, sqlalchemy -, twisted -, typer +{ + lib, + aiohttp, + buildPythonPackage, + click, + fetchFromGitHub, + prompt-toolkit, + pygments, + pyserial, + pytest-asyncio, + pytest-xdist, + pytestCheckHook, + pythonOlder, + redis, + setuptools, + sqlalchemy, + twisted, + typer, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace-fail "--cov-report html " "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; passthru.optional-dependencies = { repl = [ @@ -48,9 +47,7 @@ buildPythonPackage rec { pygments click ] ++ typer.optional-dependencies.all; - serial = [ - pyserial - ]; + serial = [ pyserial ]; }; nativeCheckInputs = [ @@ -70,18 +67,18 @@ buildPythonPackage rec { popd ''; - pythonImportsCheck = [ - "pymodbus" - ]; + pythonImportsCheck = [ "pymodbus" ]; - disabledTests = [ - # Tests often hang - "test_connected" - ] ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [ - "test_split_serial_packet" - "test_serial_poll" - "test_simulator" - ]; + disabledTests = + [ + # Tests often hang + "test_connected" + ] + ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [ + "test_split_serial_packet" + "test_serial_poll" + "test_simulator" + ]; meta = with lib; { description = "Python implementation of the Modbus protocol";