diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-04-09 11:00:22 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-04-09 12:51:34 -0700 |
commit | 664d1b2440e8f87ed31665645bf98279ec01f65c (patch) | |
tree | e19a80365d190592c4d93cfeac757bec5eb93c50 /pkgs/servers | |
parent | 5dc061056405fe550778e7c47966412211099f39 (diff) |
esphome: remove version pinning
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/home-assistant/esphome.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/servers/home-assistant/esphome.nix b/pkgs/servers/home-assistant/esphome.nix index 12b36de496509..2dc023df5a27f 100644 --- a/pkgs/servers/home-assistant/esphome.nix +++ b/pkgs/servers/home-assistant/esphome.nix @@ -33,11 +33,9 @@ in python.pkgs.buildPythonApplication rec { protobuf ]; + # remove all version pinning (E.g tornado==5.1.1 -> tornado) postPatch = '' - substituteInPlace setup.py \ - --replace "protobuf==3.10.0" "protobuf~=3.10" \ - --replace "paho-mqtt==1.4.0" "paho-mqtt~=1.4" \ - --replace "tornado==5.1.1" "tornado~=5.1" + sed -i -e "s/==[0-9.]*//" setup.py ''; makeWrapperArgs = [ @@ -49,11 +47,14 @@ in python.pkgs.buildPythonApplication rec { ]; # Platformio will try to access the network - doCheck = false; + # Instead, run the executable + checkPhase = '' + $out/bin/esphome --help > /dev/null + ''; meta = with lib; { description = "Make creating custom firmwares for ESP32/ESP8266 super easy"; - homepage = https://esphome.io/; + homepage = "https://esphome.io/"; license = licenses.mit; maintainers = with maintainers; [ dotlambda globin ]; }; |