tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.homematicip: format with nixfmt
Fabian Affolter
2 years ago
883eafa3
c542da23
+52
-53
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
homematicip
default.nix
+52
-53
pkgs/development/python-modules/homematicip/default.nix
···
1
-
{ lib
2
-
, aenum
3
-
, aiohttp
4
-
, aiohttp-wsgi
5
-
, async-timeout
6
-
, buildPythonPackage
7
-
, fetchFromGitHub
8
-
, pytest7CheckHook
9
-
, pythonAtLeast
10
-
, pythonOlder
11
-
, pytest-aiohttp
12
-
, pytest-asyncio
13
-
, requests
14
-
, setuptools
15
-
, setuptools-scm
16
-
, websocket-client
17
-
, websockets
0
18
}:
19
20
buildPythonPackage rec {
···
52
pytest7CheckHook
53
];
54
55
-
pytestFlagsArray = [
56
-
"--asyncio-mode=auto"
57
-
];
58
59
-
disabledTests = [
60
-
# Assert issues with datetime
61
-
"test_contact_interface_device"
62
-
"test_dimmer"
63
-
"test_external_device"
64
-
"test_heating_failure_alert_group"
65
-
"test_heating"
66
-
"test_humidity_warning_rule_group"
67
-
"test_meta_group"
68
-
"test_pluggable_switch_measuring"
69
-
"test_rotary_handle_sensor"
70
-
"test_security_group"
71
-
"test_security_zone"
72
-
"test_shutter_device"
73
-
"test_smoke_detector"
74
-
"test_switching_group"
75
-
"test_temperature_humidity_sensor_outdoor"
76
-
"test_wall_mounted_thermostat_pro"
77
-
"test_weather_sensor"
78
-
# Random failures
79
-
"test_home_getSecurityJournal"
80
-
"test_home_unknown_types"
81
-
# Requires network access
82
-
"test_websocket"
83
-
] ++ lib.optionals (pythonAtLeast "3.10") [
84
-
"test_connection_lost"
85
-
"test_user_disconnect_and_reconnect"
86
-
"test_ws_message"
87
-
"test_ws_no_pong"
88
-
];
0
0
89
90
-
pythonImportsCheck = [
91
-
"homematicip"
92
-
];
93
94
meta = with lib; {
95
description = "Module for the homematicIP REST API";
···
1
+
{
2
+
lib,
3
+
aenum,
4
+
aiohttp,
5
+
aiohttp-wsgi,
6
+
async-timeout,
7
+
buildPythonPackage,
8
+
fetchFromGitHub,
9
+
pytest7CheckHook,
10
+
pythonAtLeast,
11
+
pythonOlder,
12
+
pytest-aiohttp,
13
+
pytest-asyncio,
14
+
requests,
15
+
setuptools,
16
+
setuptools-scm,
17
+
websocket-client,
18
+
websockets,
19
}:
20
21
buildPythonPackage rec {
···
53
pytest7CheckHook
54
];
55
56
+
pytestFlagsArray = [ "--asyncio-mode=auto" ];
0
0
57
58
+
disabledTests =
59
+
[
60
+
# Assert issues with datetime
61
+
"test_contact_interface_device"
62
+
"test_dimmer"
63
+
"test_external_device"
64
+
"test_heating_failure_alert_group"
65
+
"test_heating"
66
+
"test_humidity_warning_rule_group"
67
+
"test_meta_group"
68
+
"test_pluggable_switch_measuring"
69
+
"test_rotary_handle_sensor"
70
+
"test_security_group"
71
+
"test_security_zone"
72
+
"test_shutter_device"
73
+
"test_smoke_detector"
74
+
"test_switching_group"
75
+
"test_temperature_humidity_sensor_outdoor"
76
+
"test_wall_mounted_thermostat_pro"
77
+
"test_weather_sensor"
78
+
# Random failures
79
+
"test_home_getSecurityJournal"
80
+
"test_home_unknown_types"
81
+
# Requires network access
82
+
"test_websocket"
83
+
]
84
+
++ lib.optionals (pythonAtLeast "3.10") [
85
+
"test_connection_lost"
86
+
"test_user_disconnect_and_reconnect"
87
+
"test_ws_message"
88
+
"test_ws_no_pong"
89
+
];
90
91
+
pythonImportsCheck = [ "homematicip" ];
0
0
92
93
meta = with lib; {
94
description = "Module for the homematicIP REST API";