-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
home-assistant-custom-components.dreame-vacuum: init at 1.0.4, python312Packages.py-mini-racer: init at 0.6.0 #356473
Conversation
nixpkgs-review output: |
@mweinelt @natsukium Bumping this PR |
|
||
buildPythonPackage rec { | ||
pname = "py-mini-racer"; | ||
version = "0.6.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version = "0.6.0"; | |
version = "0.6.0"; | |
pyproject = true; |
and configure build-system
.
rev = "v${version}"; | ||
sha256 = "sha256-r6ghH1uPbnM4cruxgcOkHv3HsC29p3fILtH3Mzpy8yQ="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "v${version}"; | |
sha256 = "sha256-r6ghH1uPbnM4cruxgcOkHv3HsC29p3fILtH3Mzpy8yQ="; | |
tag = "v${version}"; | |
hash = "sha256-r6ghH1uPbnM4cruxgcOkHv3HsC29p3fILtH3Mzpy8yQ="; |
owner = "sqreen"; | ||
repo = "PyMiniRacer"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This repository is deprecated. The successor is https://github.com/bpcreech/PyMiniRacer.
sha256 = "sha256-r6ghH1uPbnM4cruxgcOkHv3HsC29p3fILtH3Mzpy8yQ="; | ||
}; | ||
|
||
doCheck = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable tests.
src = fetchFromGitHub { | ||
inherit owner; | ||
repo = "dreame-vacuum"; | ||
rev = "v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "v${version}"; | |
tag = "v${version}"; |
lib, | ||
buildHomeAssistantComponent, | ||
fetchFromGitHub, | ||
python312Packages, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never consume python312Packages
in home-assistant-custom-components
. You must consume the same package set that home-assistant provides. To that end you can just consume the dependencies up here.
python312Packages, | |
numpy, | |
pillow, | |
..., |
And please sort this list.
hash = "sha256-LeKD2dIeC/TsOl3Q2TLFQy7RjzbRwYmvKUUm3JVsz8E="; | ||
}; | ||
|
||
propagatedBuildInputs = with python312Packages; [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
propagatedBuildInputs = with python312Packages; [ | |
dependencies = [ |
pillow | ||
numpy | ||
pybase64 | ||
requests | ||
pycryptodome | ||
python-miio | ||
py-mini-racer | ||
tzlocal | ||
paho-mqtt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort.
The cherry on top is that this package requires a native v8 library, that is built as part of the release process with no security guarantees at all. |
Can I suggest you look into https://github.com/Hypfer/Valetudo instead? 🤔 |
I wanted to avoid flashing robot firmware since it requires a custom PCB board and this component works locally too although without map support. |
Shoot. I have this PCB in our hackerspace, but we're probably hundreds of kilometers apart. |
Czech Republic is not far from Germany but I don't feel like taking a trip just for this PCB 😅 |
Unfortunately it is not a spare part and we only have the one. Every other month somebody comes by to use it to flash their new vacuum here. I suggest asking around hacker- and maker spaces in the Czech Republic or on Valetudo's Telegram group. |
Adds dreame-vacuum custom component for controlling Dreame Robots.
Also adds py-mini-racer python library which is required by dreame-vacuum.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.