Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, httpx, pytest-aiohttp, pytest-mock, pytestCheckHook, requests, setuptools-scm, setuptools, websockets,}:
buildPythonPackage (finalAttrs: { pname = "homematicip"; version = "2.22.0"; pyproject = true;
__darwinAllowLocalNetworking = true;
src = fetchFromGitHub { owner = "hahn-th"; repo = "homematicip-rest-api"; tag = finalAttrs.version; hash = "sha256-1O6KcEJIUseCcJye0j374osNRvSsTkngTGn89hX4RY8="; };
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/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ fab ]; };})