Commit 883eafa3 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.homematicip: format with nixfmt

parent c542da23
Loading
Loading
Loading
Loading
+52 −53
Original line number Diff line number Diff line
{ lib
, aenum
, aiohttp
, aiohttp-wsgi
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytest7CheckHook
, pythonAtLeast
, pythonOlder
, pytest-aiohttp
, pytest-asyncio
, requests
, setuptools
, setuptools-scm
, websocket-client
, websockets
{
  lib,
  aenum,
  aiohttp,
  aiohttp-wsgi,
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  pytest7CheckHook,
  pythonAtLeast,
  pythonOlder,
  pytest-aiohttp,
  pytest-asyncio,
  requests,
  setuptools,
  setuptools-scm,
  websocket-client,
  websockets,
}:

buildPythonPackage rec {
@@ -52,11 +53,10 @@ buildPythonPackage rec {
    pytest7CheckHook
  ];

  pytestFlagsArray = [
    "--asyncio-mode=auto"
  ];
  pytestFlagsArray = [ "--asyncio-mode=auto" ];

  disabledTests = [
  disabledTests =
    [
      # Assert issues with datetime
      "test_contact_interface_device"
      "test_dimmer"
@@ -80,16 +80,15 @@ buildPythonPackage rec {
      "test_home_unknown_types"
      # Requires network access
      "test_websocket"
  ] ++ lib.optionals (pythonAtLeast "3.10") [
    ]
    ++ lib.optionals (pythonAtLeast "3.10") [
      "test_connection_lost"
      "test_user_disconnect_and_reconnect"
      "test_ws_message"
      "test_ws_no_pong"
    ];

  pythonImportsCheck = [
    "homematicip"
  ];
  pythonImportsCheck = [ "homematicip" ];

  meta = with lib; {
    description = "Module for the homematicIP REST API";