app-misc/homeassistant requires py-mini-racer #3362

Open
opened 2024-05-22 20:32:13 +02:00 by zentoo · 2 comments

I need this dependency for custom component dreame_vacuum and actually it is a direct homeassistant-2024.5.4 dependency for a venv installation:
py-mini-racer==0.6.0

I have failed to create a corresponding ebuild:

  1. It needs external several git repos and I don't know how to manage this git fetches inside the ebuild:
https://chromium.googlesource.com/chromium/tools/depot_tools.git
https://chromium.googlesource.com/v8/v8.git

I got Could not resolve host error because of network sandboxing.
I've added RESTRICT+=" network-sandbox" to bypass it but I'm sure there is a better solution especially to avoid the big download each time (no distfiles this way).

  1. ModuleNotFoundError: No module named 'six.moves'

Second problem: the build phase log this error about this module that is , if I have understood correctly, a compatibility layer for python 2.7 code to python 3 but not sure if it is compatible with 3.12 and not sure >I've understood correctly. :|

Anyway, I let you my failed ebuild as attachment in case you know how to fix it.

I need this dependency for custom component dreame_vacuum and actually it is a direct homeassistant-2024.5.4 dependency for a venv installation: `py-mini-racer==0.6.0` I have failed to create a corresponding ebuild: 1) It needs external several git repos and I don't know how to manage this git fetches inside the ebuild: ``` https://chromium.googlesource.com/chromium/tools/depot_tools.git https://chromium.googlesource.com/v8/v8.git ``` > I got `Could not resolve host` error because of network sandboxing. > I've added `RESTRICT+=" network-sandbox"` to bypass it but I'm sure there is a better solution especially to avoid the big download each time (no distfiles this way). 2) `ModuleNotFoundError: No module named 'six.moves'` >Second problem: the build phase log this error about this module that is , if I have understood correctly, a compatibility layer for python 2.7 code to python 3 but not sure if it is compatible with 3.12 and not sure >I've understood correctly. :| Anyway, I let you my failed ebuild as attachment in case you know how to fix it.
Owner

Thats a big one. We could try to 'just' install the wheel, like in home-assistant-chip-clusters.
This would avoid installing all the build tools.

python_compile() {
	distutils_wheel_install "${BUILD_DIR}/install" "${DISTDIR}/${PN//-/_}-${PV}-py3-none-any.whl"
}
Thats a big one. We could try to 'just' install the wheel, like in home-assistant-chip-clusters. This would avoid installing all the build tools. ```python python_compile() { distutils_wheel_install "${BUILD_DIR}/install" "${DISTDIR}/${PN//-/_}-${PV}-py3-none-any.whl" } ```
Owner

I didn't make it past the chromium tools installer.

If you are on x64_64, try [master aca9e63a8] dev-python/mini-racer: new package, add 0.12.1,
else tell me your platform.

I didn't make it past the chromium tools installer. If you are on x64_64, try [master aca9e63a8] dev-python/mini-racer: new package, add 0.12.1, else tell me your platform.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#3362
No description provided.