Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildHomeAssistantComponent, 5 6 # dependencies 7 hass-web-proxy-lib, 8 9 # tests 10 homeassistant, 11 pytest-aiohttp, 12 pytest-cov-stub, 13 pytest-homeassistant-custom-component, 14 pytest-timeout, 15 pytestCheckHook, 16}: 17 18buildHomeAssistantComponent rec { 19 owner = "blakeblackshear"; 20 domain = "frigate"; 21 version = "5.9.3"; 22 23 src = fetchFromGitHub { 24 owner = "blakeblackshear"; 25 repo = "frigate-hass-integration"; 26 tag = "v${version}"; 27 hash = "sha256-kbhDZbyNVct0GDhIr7mKyeVIkyV+Gc/gzbKnnv1FcQg="; 28 }; 29 30 dependencies = [ hass-web-proxy-lib ]; 31 32 nativeCheckInputs = [ 33 homeassistant 34 pytest-aiohttp 35 pytest-cov-stub 36 pytest-homeassistant-custom-component 37 pytest-timeout 38 pytestCheckHook 39 ] 40 ++ (homeassistant.getPackages "mqtt" homeassistant.python.pkgs) 41 ++ (homeassistant.getPackages "stream" homeassistant.python.pkgs); 42 43 disabledTests = [ 44 # https://github.com/blakeblackshear/frigate-hass-integration/issues/922 45 "test_frigate_camera_setup" 46 "test_frigate_camera_setup_birdseye" 47 "test_frigate_camera_setup_webrtc" 48 "test_frigate_camera_setup_birdseye_webrtc" 49 ]; 50 51 disabledTestPaths = [ 52 # https://github.com/blakeblackshear/frigate-hass-integration/issues/907 53 "tests/test_media_source.py" 54 ]; 55 56 meta = with lib; { 57 description = "Provides Home Assistant integration to interface with a separately running Frigate service"; 58 homepage = "https://github.com/blakeblackshear/frigate-hass-integration"; 59 changelog = "https://github.com/blakeblackshear/frigate-hass-integration/releases/tag/v${version}"; 60 maintainers = with maintainers; [ presto8 ]; 61 license = licenses.mit; 62 }; 63}