1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/home-assistant/appdaemon.nix

71 lines
2.1 KiB
Nix
Raw Normal View History

2020-01-28 22:42:21 +00:00
{ lib, python3, fetchFromGitHub }:
2018-02-28 01:38:11 +00:00
let
python = python3.override {
packageOverrides = self: super: {
2020-01-28 22:42:21 +00:00
bcrypt = super.bcrypt.overridePythonAttrs (oldAttrs: rec {
version = "3.1.4";
2018-02-28 01:38:11 +00:00
src = oldAttrs.src.override {
inherit version;
2020-01-28 22:42:21 +00:00
sha256 = "13cyrnqwkhc70rs6dg65z4yrrr3dc42fhk11804fqmci9hvimvb7";
2018-02-28 01:38:11 +00:00
};
});
yarl = super.yarl.overridePythonAttrs (oldAttrs: rec {
version = "1.1.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "6af895b45bd49254cc309ac0fe6e1595636a024953d710e01114257736184698";
};
});
2019-04-03 13:31:48 +01:00
jinja2 = super.jinja2.overridePythonAttrs (oldAttrs: rec {
2019-04-26 08:26:38 +01:00
version = "2.10.1";
2019-04-03 13:31:48 +01:00
src = oldAttrs.src.override {
inherit version;
2019-04-26 08:26:38 +01:00
sha256 = "065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013";
2019-04-03 13:31:48 +01:00
};
});
2018-02-28 01:38:11 +00:00
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";
2020-01-28 22:42:21 +00:00
version = "4.0.1";
2018-02-28 01:38:11 +00:00
2020-01-28 22:42:21 +00:00
src = fetchFromGitHub {
owner = "home-assistant";
repo = "appdaemon";
rev = version;
sha256 = "13qzjv11b0c7s1c66j70qmc222a78805n10lv2svj9yyk1v4xhjv";
2018-02-28 01:38:11 +00:00
};
propagatedBuildInputs = with python.pkgs; [
2020-01-28 22:42:21 +00:00
daemonize astral requests websocket_client aiohttp yarl jinja2
2019-11-02 21:52:12 +00:00
aiohttp-jinja2 pyyaml voluptuous feedparser iso8601 bcrypt paho-mqtt setuptools
2020-01-28 22:42:21 +00:00
deepdiff dateutil bcrypt python-socketio pid
2018-02-28 01:38:11 +00:00
];
# no tests implemented
doCheck = false;
2019-08-18 10:46:49 +01:00
postPatch = ''
2020-01-28 22:42:21 +00:00
substituteInPlace requirements.txt --replace "pyyaml==5.1" "pyyaml"
2019-08-18 10:46:49 +01:00
'';
2018-02-28 01:38:11 +00:00
meta = with lib; {
description = "Sandboxed python execution environment for writing automation apps for Home Assistant";
homepage = "https://github.com/home-assistant/appdaemon";
2018-02-28 01:38:11 +00:00
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg dotlambda ];
};
}