From efdb9b4ee86a3bf3349efa7a23b42cbc18766b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 8 Apr 2019 16:48:02 +0200 Subject: [PATCH] home-assistant: pin user-agents to 1.1.0 home-assistant-frontend requires user-agents==1.1.0 --- pkgs/servers/home-assistant/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index f8fd859c8501..9b3e70e683af 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -64,6 +64,20 @@ let (mkOverride "colorlog" "4.0.2" "3cf31b25cbc8f86ec01fef582ef3b840950dea414084ed19ab922c8b493f9b42") + # required by home-assistant-frontend + (self: super: { + user-agents = super.user-agents.overridePythonAttrs (oldAttrs: rec { + version = "1.1.0"; + src = fetchFromGitHub { + owner = "selwin"; + repo = "python-user-agents"; + rev = "v${version}"; + sha256 = "14kxd780zhp8718xr1z63xffaj3bvxgr4pldh9sv943m4hvi0gw5"; + }; + doCheck = false; # can be dropped for 2.0 + }); + }) + # hass-frontend does not exist in python3.pkgs (self: super: { hass-frontend = self.callPackage ./frontend.nix { };