Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 2.1 kB view raw
1{ lib 2, aenum 3, aiohttp 4, aiohttp-wsgi 5, async-timeout 6, buildPythonPackage 7, fetchFromGitHub 8, pytestCheckHook 9, pythonAtLeast 10, pythonOlder 11, pytest-aiohttp 12, pytest-asyncio 13, requests 14, websocket-client 15, websockets 16}: 17 18buildPythonPackage rec { 19 pname = "homematicip"; 20 version = "1.0.14"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.8"; 24 25 src = fetchFromGitHub { 26 owner = "hahn-th"; 27 repo = "homematicip-rest-api"; 28 rev = "refs/tags/${version}"; 29 hash = "sha256-2tJoIknqcwEvX2mQsrSEEh45pEMpNfeefuXVKSJTwig="; 30 }; 31 32 propagatedBuildInputs = [ 33 aenum 34 aiohttp 35 async-timeout 36 requests 37 websocket-client 38 websockets 39 ]; 40 41 nativeCheckInputs = [ 42 aiohttp-wsgi 43 pytest-aiohttp 44 pytest-asyncio 45 pytestCheckHook 46 ]; 47 48 pytestFlagsArray = [ 49 "--asyncio-mode=auto" 50 ]; 51 52 disabledTests = [ 53 # Assert issues with datetime 54 "test_contact_interface_device" 55 "test_dimmer" 56 "test_external_device" 57 "test_heating_failure_alert_group" 58 "test_heating" 59 "test_humidity_warning_rule_group" 60 "test_meta_group" 61 "test_pluggable_switch_measuring" 62 "test_rotary_handle_sensor" 63 "test_security_group" 64 "test_security_zone" 65 "test_shutter_device" 66 "test_smoke_detector" 67 "test_switching_group" 68 "test_temperature_humidity_sensor_outdoor" 69 "test_wall_mounted_thermostat_pro" 70 "test_weather_sensor" 71 # Random failures 72 "test_home_getSecurityJournal" 73 "test_home_unknown_types" 74 # Requires network access 75 "test_websocket" 76 ] ++ lib.optionals (pythonAtLeast "3.10") [ 77 "test_connection_lost" 78 "test_user_disconnect_and_reconnect" 79 "test_ws_message" 80 "test_ws_no_pong" 81 ]; 82 83 pythonImportsCheck = [ 84 "homematicip" 85 ]; 86 87 meta = with lib; { 88 description = "Module for the homematicIP REST API"; 89 homepage = "https://github.com/hahn-th/homematicip-rest-api"; 90 changelog = "https://github.com/hahn-th/homematicip-rest-api/releases/tag/${version}"; 91 license = with licenses; [ gpl3Only ]; 92 maintainers = with maintainers; [ fab ]; 93 }; 94}