mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
67ae50adee
Diff: https://github.com/TomerFi/aioswitcher/compare/refs/tags/3.2.1...3.2.2 Changelog: https://github.com/TomerFi/aioswitcher/releases/tag/3.2.2
68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
{ lib
|
|
, assertpy
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytest-mockservers
|
|
, pytest-resource-path
|
|
, pytest-sugar
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, time-machine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioswitcher";
|
|
version = "3.2.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TomerFi";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-17LTNQjI2UfgtlNNkSRSWMNnhgokBXn/7KGuKo5Ai4E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
preCheck = ''
|
|
export TZ=Asia/Jerusalem
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
assertpy
|
|
pytest-asyncio
|
|
pytest-mockservers
|
|
pytest-resource-path
|
|
pytest-sugar
|
|
pytestCheckHook
|
|
time-machine
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
|
|
"test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"
|
|
"test_schedule_parser_with_a_daily_recurring_enabled_schedule_data"
|
|
"test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data"
|
|
"test_schedule_parser_with_a_non_recurring_enabled_schedule_data"
|
|
"test_hexadecimale_timestamp_to_localtime_with_the_current_timestamp_should_return_a_time_string"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioswitcher"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to interact with Switcher water heater";
|
|
homepage = "https://github.com/TomerFi/aioswitcher";
|
|
changelog = "https://github.com/TomerFi/aioswitcher/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|