Package Details: python-home-assistant-frontend 20260624.4-1

Git Clone URL: https://aur.archlinux.org/python-home-assistant-frontend.git (read-only, click to copy)
Package Base: python-home-assistant-frontend
Description: The Home Assistant frontend
Upstream URL: https://github.com/home-assistant/frontend
Licenses: Apache-2.0
Submitter: AlD
Maintainer: AlD
Last Packager: AlD
Votes: 4
Popularity: 0.000050
First Submitted: 2022-02-01 00:34 (UTC)
Last Updated: 2026-07-04 21:40 (UTC)

Dependencies (2)

Required by (0)

Sources (0)

Latest Comments

AlD commented on 2026-03-31 21:39 (UTC)

It installs cleanly in a chroot, so I'm guessing there's an issue with your uv environment.

nshephard commented on 2026-03-18 09:39 (UTC)

Thanks for writing and sharing these Home Assistant builds.

I was trying to install this front end and am using uv to manage my virtual environments I created and activated the virtual environment.

 which python
/home/user/aur/.venv/bin/python    

But when I tried to install the package with makepkg -sri it complained it that a virtual environment couldn't be found.

==> Making package: python-home-assistant-frontend 20260304.0-1 (Wed Mar 18 08:25:57 2026)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for neil:
resolving dependencies...
looking for conflicting packages...

Packages (2) python-attrs-25.4.0-3  python-pip-26.0.1-1

Total Installed Size:  16.86 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                                                   [########################################################] 100%
(2/2) checking package integrity                                                                 [########################################################] 100%
(2/2) loading package files                                                                      [########################################################] 100%
(2/2) checking for file conflicts                                                                [########################################################] 100%
(2/2) checking available disk space                                                              [########################################################] 100%
:: Processing package changes...
(1/2) installing python-attrs                                                                    [########################################################] 100%
(2/2) installing python-pip                                                                      [########################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
==> Extracting sources...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
ERROR: Could not find an activated virtualenv (required).
==> ERROR: A failure occurred in build().

This was because using uv the call to pip needs preceding with uv, and so the global /usr/bin/pip was being called instead, which can install packages system-wide when called as user.

I needed to modify line 11 of PKGBUILD...

build() {
  uv pip install --no-deps --target="home-assistant-frontend" --upgrade home-assistant-frontend==${pkgver}
}

...and with that change I could build and install the package.

Need for venv

I think though that even if I wasn't using uv this would still have failed because the build requires a virtual environment since /usr/bin/pip can't install packages at the system level when run as user as is the case when running makepkg -sri

Thus, if looking to build and install this package you have to have created a virtual environment and activated, which requires python-venv to be installed at the system level.

sudo pacman -Syu python-venv
git clone https://aur.archlinux.org/python-home-assistant-frontend.git
cd python-home-assistant-frontend
python -m venv ha-venv
source ha-venv/bin/activate
makepkg -sri