mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 15:28:19 +00:00
esphome: replace iputils dependency with inetutils.
The iputils package is only available on Linux. Adding it as a dependency of esphome made the latter unavailable on other platforms. The inetutils package also provides the ping command needed by esphome, and is available on more platforms. Also enable local networking on darwin in order for the tests to work in the sandbox.
This commit is contained in:
parent
f34b50851a
commit
06c5fb7076
@ -6,7 +6,7 @@
|
||||
, platformio
|
||||
, esptool
|
||||
, git
|
||||
, iputils
|
||||
, inetutils
|
||||
}:
|
||||
|
||||
let
|
||||
@ -78,12 +78,15 @@ python.pkgs.buildPythonApplication rec {
|
||||
# platformio is used in esphome/platformio_api.py
|
||||
# esptool is used in esphome/__main__.py
|
||||
# git is used in esphome/writer.py
|
||||
# iputils is used in esphome/dashboard/status/ping.py
|
||||
"--prefix PATH : ${lib.makeBinPath [ platformio esptool git iputils ]}"
|
||||
# inetutils is used in esphome/dashboard/status/ping.py
|
||||
"--prefix PATH : ${lib.makeBinPath [ platformio esptool git inetutils ]}"
|
||||
"--prefix PYTHONPATH : $PYTHONPATH" # will show better error messages
|
||||
"--set ESPHOME_USE_SUBPROCESS ''"
|
||||
];
|
||||
|
||||
# Needed for tests
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = with python3Packages; [
|
||||
hypothesis
|
||||
mock
|
||||
|
Loading…
Reference in New Issue
Block a user