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";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "4.2.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = python3.pythonOlder "3.7";
|
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}";
|
|
|
|
hash = "sha256-4sN0optkMmyWb5Cd3F7AhcXYHh7aidJE/bieYMEKgSY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-02-22 10:55:15 +00:00
|
|
|
# relax dependencies
|
2021-05-03 20:48:10 +00:00
|
|
|
sed -i 's/==/>=/' requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
aiohttp-jinja2
|
|
|
|
astral
|
2020-11-19 00:13:47 +00:00
|
|
|
azure-keyvault-secrets
|
2021-05-03 20:48:10 +00:00
|
|
|
azure-mgmt-compute
|
|
|
|
azure-mgmt-resource
|
|
|
|
azure-mgmt-storage
|
|
|
|
azure-storage-blob
|
|
|
|
bcrypt
|
2023-03-15 16:39:30 +00:00
|
|
|
faust-cchardet
|
2021-05-03 20:48:10 +00:00
|
|
|
deepdiff
|
|
|
|
feedparser
|
|
|
|
iso8601
|
|
|
|
jinja2
|
|
|
|
paho-mqtt
|
|
|
|
pid
|
|
|
|
pygments
|
|
|
|
python-dateutil
|
|
|
|
python-engineio
|
|
|
|
python-socketio
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
sockjs
|
|
|
|
uvloop
|
|
|
|
voluptuous
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-05-03 20:48:10 +00:00
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.rst";
|
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
|
|
|
};
|
|
|
|
}
|