Files
nixpkgs/pkgs/development/python-modules/homematicip/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

87 lines
1.8 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
httpx,
pytest-aiohttp,
pytest-mock,
pytestCheckHook,
pythonOlder,
requests,
setuptools-scm,
setuptools,
websockets,
}:
buildPythonPackage rec {
pname = "homematicip";
version = "2.4.0";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "hahn-th";
repo = "homematicip-rest-api";
tag = version;
hash = "sha256-Ye3UDItGbpF+7iqcBruep0Vb/Oj7KkF0z2HeZ44MeA0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
aiohttp
httpx
requests
websockets
];
nativeCheckInputs = [
pytest-aiohttp
pytest-mock
pytestCheckHook
];
pytestFlags = [ "--asyncio-mode=auto" ];
disabledTests = [
# Assert issues with datetime
"test_contact_interface_device"
"test_dimmer"
"test_external_device"
"test_heating_failure_alert_group"
"test_heating"
"test_humidity_warning_rule_group"
"test_meta_group"
"test_pluggable_switch_measuring"
"test_rotary_handle_sensor"
"test_security_group"
"test_security_zone"
"test_shutter_device"
"test_smoke_detector"
"test_switching_group"
"test_temperature_humidity_sensor_outdoor"
"test_wall_mounted_thermostat_pro"
"test_weather_sensor"
# Random failures
"test_home_getSecurityJournal"
"test_home_unknown_types"
# Requires network access
"test_websocket"
];
pythonImportsCheck = [ "homematicip" ];
meta = {
description = "Module for the homematicIP REST API";
homepage = "https://github.com/hahn-th/homematicip-rest-api";
changelog = "https://github.com/hahn-th/homematicip-rest-api/releases/tag/${src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}