16 buildPythonPackage rec {
17 pname = "aioswitcher";
21 disabled = pythonOlder "3.9";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-UpwIzwOl1yKqK8KxFDXAWoZFkQ+1r1sUcDfx6AxRdNw=";
30 __darwinAllowLocalNetworking = true;
37 export TZ=Asia/Jerusalem
51 # AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
52 "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"
53 "test_schedule_parser_with_a_daily_recurring_enabled_schedule_data"
54 "test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data"
55 "test_schedule_parser_with_a_non_recurring_enabled_schedule_data"
56 ] ++ lib.optionals (pythonAtLeast "3.12") [
57 # ssertionError: Expected <'I' format requires 0 <= number <= 4294967295> to be equal to <argument out of range>, but was not.
58 "test_minutes_to_hexadecimal_seconds_with_a_negative_value_should_throw_an_error"
59 "test_current_timestamp_to_hexadecimal_with_errornous_value_should_throw_an_error"
62 pythonImportsCheck = [
67 description = "Python module to interact with Switcher water heater";
68 homepage = "https://github.com/TomerFi/aioswitcher";
69 changelog = "https://github.com/TomerFi/aioswitcher/releases/tag/${version}";
70 license = with licenses; [ mit ];
71 maintainers = with maintainers; [ fab ];