diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 282db5eb8bee..4d970a7e0d5d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -589,7 +589,7 @@ "media_player.songpal" = ps: with ps; [ ]; "media_player.sonos" = ps: with ps; [ ]; "media_player.soundtouch" = ps: with ps; [ libsoundtouch ]; - "media_player.spotify" = ps: with ps; [ aiohttp-cors ]; + "media_player.spotify" = ps: with ps; [ aiohttp-cors spotipy ]; "media_player.squeezebox" = ps: with ps; [ ]; "media_player.ue_smart_radio" = ps: with ps; [ ]; "media_player.universal" = ps: with ps; [ ]; diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py index 8415fd17e85a..3b6dccb27bc1 100755 --- a/pkgs/servers/home-assistant/parse-requirements.py +++ b/pkgs/servers/home-assistant/parse-requirements.py @@ -106,6 +106,9 @@ build_inputs = {} for component in sorted(components.keys()): attr_paths = [] for req in sorted(get_reqs(components, component)): + # Some requirements are specified by url, e.g. https://example.org/foobar#xyz==1.0.0 + # Therefore, if there's a "#" in the line, only take the part after it + req = req[req.find('#') + 1:] name = req.split('==')[0] attr_path = name_to_attr_path(name) if attr_path is not None: