2018-07-21 02:44:44 +02:00
|
|
|
{ lib, python3 }:
|
2018-02-28 02:38:11 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
2018-11-25 12:18:21 +01:00
|
|
|
# TODO: remove after pinning aiohttp to a newer version
|
2019-01-10 15:11:46 +01:00
|
|
|
propagatedBuildInputs = with self; [ chardet multidict async-timeout yarl idna-ssl ];
|
|
|
|
doCheck = false;
|
2018-02-28 02:38:11 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
yarl = super.yarl.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.1.0";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "6af895b45bd49254cc309ac0fe6e1595636a024953d710e01114257736184698";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2019-04-03 14:31:48 +02:00
|
|
|
jinja2 = super.jinja2.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "2.10";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2018-02-28 02:38:11 +01:00
|
|
|
aiohttp-jinja2 = super.aiohttp-jinja2.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.15.0";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "0f390693f46173d8ffb95669acbb0e2a3ec54ecce676703510ad47f1a6d9dc83";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2019-04-03 14:31:48 +02:00
|
|
|
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
|
2019-04-04 21:03:52 +02:00
|
|
|
version = "5.1";
|
2019-04-03 14:31:48 +02:00
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2019-04-04 21:03:52 +02:00
|
|
|
sha256 = "436bc774ecf7c103814098159fbb84c2715d25980175292c648f2da143909f95";
|
2019-04-03 14:31:48 +02:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2018-02-28 02:38:11 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in python.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "appdaemon";
|
2019-04-04 21:03:52 +02:00
|
|
|
version = "3.0.4";
|
2018-02-28 02:38:11 +01:00
|
|
|
|
|
|
|
src = python.pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-04 21:03:52 +02:00
|
|
|
sha256 = "e2393b5e0bb34e94e61f5debc95ad74c1c6929635b74bf8ba15c22b40cbdec69";
|
2018-02-28 02:38:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2018-11-16 15:06:01 +01:00
|
|
|
daemonize astral requests sseclient websocket_client aiohttp yarl jinja2
|
|
|
|
aiohttp-jinja2 pyyaml voluptuous feedparser iso8601 bcrypt paho-mqtt
|
2018-02-28 02:38:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|