Commit d6d7102a authored by Robert Schütz's avatar Robert Schütz
Browse files

home-assistant: reduce dependencies

parent 525dcd8f
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -376,7 +376,6 @@ python.pkgs.buildPythonApplication rec {
  dependencies = with python.pkgs; [
    # Only packages required in pyproject.toml
    aiodns
    aiofiles
    aiohasupervisor
    aiohttp
    aiohttp-asyncmdnsresolver
@@ -396,28 +395,20 @@ python.pkgs.buildPythonApplication rec {
    cronsim
    cryptography
    fnv-hash-fast
    ha-ffmpeg
    hass-nabucasa
    hassil
    home-assistant-bluetooth
    home-assistant-intents
    httpx
    ifaddr
    jinja2
    lru-dict
    mutagen
    numpy
    orjson
    packaging
    pillow
    propcache
    psutil-home-assistant
    pyjwt
    pymicro-vad
    pyopenssl
    pyspeex-noise
    python-slugify
    pyturbojpeg
    pyyaml
    requests
    securetar
@@ -467,8 +458,10 @@ python.pkgs.buildPythonApplication rec {
    ]
    ++ lib.concatMap (component: getPackages component python.pkgs) [
      # some components are needed even if tests in tests/components are disabled
      "default_config"
      "assist_pipeline"
      "frontend"
      "hue"
      "mobile_app"
    ];

  pytestFlags = [
+7 −3
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@ let
  # some components' tests have additional dependencies
  extraCheckInputs = with home-assistant.python.pkgs; {
    axis = getComponentDeps "deconz";
    emulated_hue = [
      defusedxml
    ];
    homeassistant_connect_zbt2 = getComponentDeps "zha";
    gardena_bluetooth = getComponentDeps "husqvarna_automower_ble";
    govee_ble = [
@@ -29,6 +32,9 @@ let
    raspberry_pi = [
      rpi-bad-power
    ];
    rss_feed_template = [
      defusedxml
    ];
    shelly = [
      pyswitchbot
    ];
@@ -42,9 +48,7 @@ let
    xiaomi_miio = [
      arrow
    ];
    zeroconf = [
      aioshelly
    ];
    zeroconf = getComponentDeps "shelly";
    zha = [
      pydeconz
    ];