19 buildPythonPackage rec {
20 pname = "aioswitcher";
24 disabled = pythonOlder "3.9";
26 src = fetchFromGitHub {
29 rev = "refs/tags/${version}";
30 hash = "sha256-O1wKw6jv2aRPLZ2hSYv3MwneeNcjO+2/RKzQ7xXWHtY=";
33 __darwinAllowLocalNetworking = true;
35 build-system = [ poetry-core ];
37 pythonRelaxDeps = [ "aiohttp" ];
45 export TZ=Asia/Jerusalem
60 # AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
61 "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"
62 "test_schedule_parser_with_a_daily_recurring_enabled_schedule_data"
63 "test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data"
64 "test_schedule_parser_with_a_non_recurring_enabled_schedule_data"
66 ++ lib.optionals (pythonAtLeast "3.12") [
67 # ssertionError: Expected <'I' format requires 0 <= number <= 4294967295> to be equal to <argument out of range>, but was not.
68 "test_minutes_to_hexadecimal_seconds_with_a_negative_value_should_throw_an_error"
69 "test_current_timestamp_to_hexadecimal_with_errornous_value_should_throw_an_error"
72 pythonImportsCheck = [ "aioswitcher" ];
75 description = "Python module to interact with Switcher water heater";
76 homepage = "https://github.com/TomerFi/aioswitcher";
77 changelog = "https://github.com/TomerFi/aioswitcher/releases/tag/${version}";
78 license = licenses.asl20;
79 maintainers = with maintainers; [ fab ];