ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / aioswitcher / default.nix
blob4c7a382813c57ecea4d1856e46d5dd8095a742db
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 , pythonOlder
12 , time-machine
15 buildPythonPackage rec {
16   pname = "aioswitcher";
17   version = "3.2.0";
18   format = "pyproject";
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "TomerFi";
24     repo = pname;
25     rev = "refs/tags/${version}";
26     hash = "sha256-Vob5p0+SlZR2eHj5Br2pWp3FCxW+zgY6crh8jrkreT0=";
27   };
29   nativeBuildInputs = [
30     poetry-core
31   ];
33   preCheck = ''
34     export TZ=Asia/Jerusalem
35   '';
37   checkInputs = [
38     assertpy
39     pytest-asyncio
40     pytest-mockservers
41     pytest-resource-path
42     pytest-sugar
43     pytestCheckHook
44     time-machine
45   ];
47   pytestFlagsArray = [
48     "--asyncio-mode=legacy"
49   ];
51   disabledTests = [
52     # AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
53     "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"
54     "test_schedule_parser_with_a_daily_recurring_enabled_schedule_data"
55     "test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data"
56     "test_schedule_parser_with_a_non_recurring_enabled_schedule_data"
57     "test_hexadecimale_timestamp_to_localtime_with_the_current_timestamp_should_return_a_time_string"
58   ];
60   pythonImportsCheck = [
61     "aioswitcher"
62   ];
64   meta = with lib; {
65     description = "Python module to interact with Switcher water heater";
66     homepage = "https://github.com/TomerFi/aioswitcher";
67     license = with licenses; [ mit ];
68     maintainers = with maintainers; [ fab ];
69   };