Commit c0154061 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pymodbus: format with nixfmt

parent 6748f9d6
Loading
Loading
Loading
Loading
+31 −34
Original line number Diff line number Diff line
{ 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,14 +67,14 @@ buildPythonPackage rec {
    popd
  '';

  pythonImportsCheck = [
    "pymodbus"
  ];
  pythonImportsCheck = [ "pymodbus" ];

  disabledTests = [
  disabledTests =
    [
      # Tests often hang
      "test_connected"
  ] ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [
    ]
    ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [
      "test_split_serial_packet"
      "test_serial_poll"
      "test_simulator"