python313Packages.homematicip: 1.1.7 -> 2.0.1.1
Diff: https://github.com/hahn-th/homematicip-rest-api/compare/refs/tags/1.1.7...refs/tags/2.0.1.1 Changelog: https://github.com/hahn-th/homematicip-rest-api/releases/tag/2.0.1.1
This commit is contained in:
@@ -1,35 +1,31 @@
|
||||
{
|
||||
lib,
|
||||
aenum,
|
||||
aiohttp,
|
||||
aiohttp-wsgi,
|
||||
async-timeout,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytest7CheckHook,
|
||||
pythonAtLeast,
|
||||
pythonOlder,
|
||||
httpx,
|
||||
pytest-aiohttp,
|
||||
pytest-asyncio_0_21,
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
websocket-client,
|
||||
setuptools,
|
||||
websockets,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "homematicip";
|
||||
version = "1.1.7";
|
||||
version = "2.0.1.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
disabled = pythonOlder "3.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hahn-th";
|
||||
repo = "homematicip-rest-api";
|
||||
tag = version;
|
||||
hash = "sha256-zhpGsmzJrtWgHlVdzIrFGQAt4EBWSWCTLIKyuuhDlPA=";
|
||||
hash = "sha256-klDyrbIJeAm3C7sCo4Z4OKDvm5+V8mfwYbyS22CKVQU=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -38,64 +34,52 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aenum
|
||||
aiohttp
|
||||
async-timeout
|
||||
httpx
|
||||
requests
|
||||
websocket-client
|
||||
websockets
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiohttp-wsgi
|
||||
(pytest-aiohttp.override {
|
||||
pytest-asyncio = pytest-asyncio_0_21;
|
||||
})
|
||||
pytest-asyncio_0_21
|
||||
pytest7CheckHook
|
||||
pytest-aiohttp
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "--asyncio-mode=auto" ];
|
||||
|
||||
disabledTests =
|
||||
[
|
||||
# Assert issues with datetime
|
||||
"test_contact_interface_device"
|
||||
"test_dimmer"
|
||||
"test_external_device"
|
||||
"test_heating_failure_alert_group"
|
||||
"test_heating"
|
||||
"test_humidity_warning_rule_group"
|
||||
"test_meta_group"
|
||||
"test_pluggable_switch_measuring"
|
||||
"test_rotary_handle_sensor"
|
||||
"test_security_group"
|
||||
"test_security_zone"
|
||||
"test_shutter_device"
|
||||
"test_smoke_detector"
|
||||
"test_switching_group"
|
||||
"test_temperature_humidity_sensor_outdoor"
|
||||
"test_wall_mounted_thermostat_pro"
|
||||
"test_weather_sensor"
|
||||
# Random failures
|
||||
"test_home_getSecurityJournal"
|
||||
"test_home_unknown_types"
|
||||
# Requires network access
|
||||
"test_websocket"
|
||||
]
|
||||
++ lib.optionals (pythonAtLeast "3.10") [
|
||||
"test_connection_lost"
|
||||
"test_user_disconnect_and_reconnect"
|
||||
"test_ws_message"
|
||||
"test_ws_no_pong"
|
||||
];
|
||||
disabledTests = [
|
||||
# Assert issues with datetime
|
||||
"test_contact_interface_device"
|
||||
"test_dimmer"
|
||||
"test_external_device"
|
||||
"test_heating_failure_alert_group"
|
||||
"test_heating"
|
||||
"test_humidity_warning_rule_group"
|
||||
"test_meta_group"
|
||||
"test_pluggable_switch_measuring"
|
||||
"test_rotary_handle_sensor"
|
||||
"test_security_group"
|
||||
"test_security_zone"
|
||||
"test_shutter_device"
|
||||
"test_smoke_detector"
|
||||
"test_switching_group"
|
||||
"test_temperature_humidity_sensor_outdoor"
|
||||
"test_wall_mounted_thermostat_pro"
|
||||
"test_weather_sensor"
|
||||
# Random failures
|
||||
"test_home_getSecurityJournal"
|
||||
"test_home_unknown_types"
|
||||
# Requires network access
|
||||
"test_websocket"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "homematicip" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for the homematicIP REST API";
|
||||
homepage = "https://github.com/hahn-th/homematicip-rest-api";
|
||||
changelog = "https://github.com/hahn-th/homematicip-rest-api/releases/tag/${version}";
|
||||
changelog = "https://github.com/hahn-th/homematicip-rest-api/releases/tag/${src.tag}";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user