1{ lib 2, assertpy 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pytest-asyncio 7, pytest-mockservers 8, pytest-resource-path 9, pytest-sugar 10, pytestCheckHook 11, time-machine 12}: 13 14buildPythonPackage rec { 15 pname = "aioswitcher"; 16 version = "2.0.6"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "TomerFi"; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-zgfgM3orhm2ZPp3Cf803adNzPeMOdRGX+sN6rhK1OT4="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 preCheck = '' 31 export TZ=Asia/Jerusalem 32 ''; 33 34 checkInputs = [ 35 assertpy 36 pytest-asyncio 37 pytest-mockservers 38 pytest-resource-path 39 pytest-sugar 40 pytestCheckHook 41 time-machine 42 ]; 43 44 disabledTests = [ 45 # AssertionError: Expected <14:00> to be equal to <17:00>, but was not. 46 "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data" 47 "test_schedule_parser_with_a_daily_recurring_enabled_schedule_data" 48 "test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data" 49 "test_schedule_parser_with_a_non_recurring_enabled_schedule_data" 50 ]; 51 52 pythonImportsCheck = [ "aioswitcher" ]; 53 54 meta = with lib; { 55 description = "Python module to interact with Switcher water heater"; 56 homepage = "https://github.com/TomerFi/aioswitcher"; 57 license = with licenses; [ mit ]; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}