2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "appdaemon";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "4.4.2";
|
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-03-19 17:17:44 +00:00
|
|
|
owner = "AppDaemon";
|
2023-02-22 10:55:15 +00:00
|
|
|
repo = "appdaemon";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-T3InE4J4qYeFJTq6nrW8y5BOA7Z0n3t9eVpl641r/xk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDeps = true;
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDepsHook
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiohttp
|
|
|
|
aiohttp-jinja2
|
|
|
|
astral
|
|
|
|
bcrypt
|
|
|
|
deepdiff
|
|
|
|
feedparser
|
|
|
|
iso8601
|
|
|
|
paho-mqtt
|
|
|
|
pid
|
|
|
|
python-dateutil
|
|
|
|
python-socketio
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
sockjs
|
|
|
|
uvloop
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2024-01-02 11:29:13 +00:00
|
|
|
tomli
|
|
|
|
tomli-w
|
2021-05-03 20:48:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/appdaemon -v | grep -q "${version}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-05 17:05:55 +00:00
|
|
|
description = "Sandboxed Python execution environment for writing automation apps for Home Assistant";
|
2021-03-19 17:17:44 +00:00
|
|
|
homepage = "https://github.com/AppDaemon/appdaemon";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-04-08 16:26:57 +00:00
|
|
|
maintainers = teams.home-assistant.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|