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
1
-
{ lib
2
2
-
, aenum
3
3
-
, aiohttp
4
4
-
, aiohttp-wsgi
5
5
-
, async-timeout
6
6
-
, buildPythonPackage
7
7
-
, fetchFromGitHub
8
8
-
, pytest7CheckHook
9
9
-
, pythonAtLeast
10
10
-
, pythonOlder
11
11
-
, pytest-aiohttp
12
12
-
, pytest-asyncio
13
13
-
, requests
14
14
-
, setuptools
15
15
-
, setuptools-scm
16
16
-
, websocket-client
17
17
-
, websockets
1
1
+
{
2
2
+
lib,
3
3
+
aenum,
4
4
+
aiohttp,
5
5
+
aiohttp-wsgi,
6
6
+
async-timeout,
7
7
+
buildPythonPackage,
8
8
+
fetchFromGitHub,
9
9
+
pytest7CheckHook,
10
10
+
pythonAtLeast,
11
11
+
pythonOlder,
12
12
+
pytest-aiohttp,
13
13
+
pytest-asyncio,
14
14
+
requests,
15
15
+
setuptools,
16
16
+
setuptools-scm,
17
17
+
websocket-client,
18
18
+
websockets,
18
19
}:
19
20
20
21
buildPythonPackage rec {
···
52
53
pytest7CheckHook
53
54
];
54
55
55
55
-
pytestFlagsArray = [
56
56
-
"--asyncio-mode=auto"
57
57
-
];
56
56
+
pytestFlagsArray = [ "--asyncio-mode=auto" ];
58
57
59
59
-
disabledTests = [
60
60
-
# Assert issues with datetime
61
61
-
"test_contact_interface_device"
62
62
-
"test_dimmer"
63
63
-
"test_external_device"
64
64
-
"test_heating_failure_alert_group"
65
65
-
"test_heating"
66
66
-
"test_humidity_warning_rule_group"
67
67
-
"test_meta_group"
68
68
-
"test_pluggable_switch_measuring"
69
69
-
"test_rotary_handle_sensor"
70
70
-
"test_security_group"
71
71
-
"test_security_zone"
72
72
-
"test_shutter_device"
73
73
-
"test_smoke_detector"
74
74
-
"test_switching_group"
75
75
-
"test_temperature_humidity_sensor_outdoor"
76
76
-
"test_wall_mounted_thermostat_pro"
77
77
-
"test_weather_sensor"
78
78
-
# Random failures
79
79
-
"test_home_getSecurityJournal"
80
80
-
"test_home_unknown_types"
81
81
-
# Requires network access
82
82
-
"test_websocket"
83
83
-
] ++ lib.optionals (pythonAtLeast "3.10") [
84
84
-
"test_connection_lost"
85
85
-
"test_user_disconnect_and_reconnect"
86
86
-
"test_ws_message"
87
87
-
"test_ws_no_pong"
88
88
-
];
58
58
+
disabledTests =
59
59
+
[
60
60
+
# Assert issues with datetime
61
61
+
"test_contact_interface_device"
62
62
+
"test_dimmer"
63
63
+
"test_external_device"
64
64
+
"test_heating_failure_alert_group"
65
65
+
"test_heating"
66
66
+
"test_humidity_warning_rule_group"
67
67
+
"test_meta_group"
68
68
+
"test_pluggable_switch_measuring"
69
69
+
"test_rotary_handle_sensor"
70
70
+
"test_security_group"
71
71
+
"test_security_zone"
72
72
+
"test_shutter_device"
73
73
+
"test_smoke_detector"
74
74
+
"test_switching_group"
75
75
+
"test_temperature_humidity_sensor_outdoor"
76
76
+
"test_wall_mounted_thermostat_pro"
77
77
+
"test_weather_sensor"
78
78
+
# Random failures
79
79
+
"test_home_getSecurityJournal"
80
80
+
"test_home_unknown_types"
81
81
+
# Requires network access
82
82
+
"test_websocket"
83
83
+
]
84
84
+
++ lib.optionals (pythonAtLeast "3.10") [
85
85
+
"test_connection_lost"
86
86
+
"test_user_disconnect_and_reconnect"
87
87
+
"test_ws_message"
88
88
+
"test_ws_no_pong"
89
89
+
];
89
90
90
90
-
pythonImportsCheck = [
91
91
-
"homematicip"
92
92
-
];
91
91
+
pythonImportsCheck = [ "homematicip" ];
93
92
94
93
meta = with lib; {
95
94
description = "Module for the homematicIP REST API";