summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-04-09 11:00:22 -0700
committerJon <jonringer@users.noreply.github.com>2020-04-09 12:51:34 -0700
commit664d1b2440e8f87ed31665645bf98279ec01f65c (patch)
treee19a80365d190592c4d93cfeac757bec5eb93c50 /pkgs
parent5dc061056405fe550778e7c47966412211099f39 (diff)
downloadnixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.tar
nixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.tar.gz
nixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.tar.bz2
nixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.tar.lz
nixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.tar.xz
nixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.tar.zst
nixpkgs-664d1b2440e8f87ed31665645bf98279ec01f65c.zip
esphome: remove version pinning
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/home-assistant/esphome.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/servers/home-assistant/esphome.nix b/pkgs/servers/home-assistant/esphome.nix
index 12b36de4965..2dc023df5a2 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 ];
   };