summaryrefslogtreecommitdiffstats
path: root/pkgs/servers/home-assistant/appdaemon.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-02-28 09:38:11 +0800
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-03-04 23:43:05 +0100
commit9c64494c8263351b5cb3b28175b658a52af7af0b (patch)
tree434a5c23849115a3503eb87371b63673fb01756a /pkgs/servers/home-assistant/appdaemon.nix
parent91456c67059e7921fb2c255a210fcf0fac50efdb (diff)
appdaemon: init at 3.0.0b4
Diffstat (limited to 'pkgs/servers/home-assistant/appdaemon.nix')
-rw-r--r--pkgs/servers/home-assistant/appdaemon.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/appdaemon.nix b/pkgs/servers/home-assistant/appdaemon.nix
new file mode 100644
index 000000000000..db6380bcf128
--- /dev/null
+++ b/pkgs/servers/home-assistant/appdaemon.nix
@@ -0,0 +1,62 @@
+{ lib, python3, fetchpatch }:
+
+let
+ python = python3.override {
+ packageOverrides = self: super: {
+
+ aiohttp = super.aiohttp.overridePythonAttrs (oldAttrs: rec {
+ version = "2.3.10";
+ src = oldAttrs.src.override {
+ inherit version;
+ sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964";
+ };
+ });
+
+ yarl = super.yarl.overridePythonAttrs (oldAttrs: rec {
+ version = "1.1.0";
+ src = oldAttrs.src.override {
+ inherit version;
+ sha256 = "6af895b45bd49254cc309ac0fe6e1595636a024953d710e01114257736184698";
+ };
+ });
+
+ aiohttp-jinja2 = super.aiohttp-jinja2.overridePythonAttrs (oldAttrs: rec {
+ version = "0.15.0";
+ src = oldAttrs.src.override {
+ inherit version;
+ sha256 = "0f390693f46173d8ffb95669acbb0e2a3ec54ecce676703510ad47f1a6d9dc83";
+ };
+ });
+
+ };
+ };
+
+in python.pkgs.buildPythonApplication rec {
+ pname = "appdaemon";
+ version = "3.0.0b4";
+
+ src = python.pkgs.fetchPypi {
+ inherit pname version;
+ sha256 = "0dfc37ecd8e1344001d4970d32813c581aba1385cf3b82c69f8b7df2eca6c019";
+ };
+
+ patches = fetchpatch {
+ url = "${meta.homepage}/pull/252.patch";
+ sha256 = "164qvgdibd2645yxm4n16bhnan13wrchfi70jp2ff806fwdg9mg0";
+ };
+
+ propagatedBuildInputs = with python.pkgs; [
+ aiohttp aiohttp-jinja2 astral bcrypt daemonize feedparser iso8601
+ jinja2 pyyaml requests sseclient voluptuous websocket_client yarl
+ ];
+
+ # no tests implemented
+ doCheck = false;
+
+ meta = with lib; {
+ description = "Sandboxed python execution environment for writing automation apps for Home Assistant";
+ homepage = https://github.com/home-assistant/appdaemon;
+ license = licenses.mit;
+ maintainers = with maintainers; [ peterhoeg dotlambda ];
+ };
+}