2021-03-15 22:09:14 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2018-02-28 01:38:11 +00:00
|
|
|
|
2021-04-18 02:09:09 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-02-28 01:38:11 +00:00
|
|
|
pname = "appdaemon";
|
2023-02-19 23:44:21 +00:00
|
|
|
version = "4.2.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = python3.pythonOlder "3.7";
|
2018-02-28 01:38:11 +00:00
|
|
|
|
2020-01-28 22:42:21 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-03-15 22:09:14 +00:00
|
|
|
owner = "AppDaemon";
|
2023-02-19 23:44:21 +00:00
|
|
|
repo = "appdaemon";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-4sN0optkMmyWb5Cd3F7AhcXYHh7aidJE/bieYMEKgSY=";
|
2018-02-28 01:38:11 +00:00
|
|
|
};
|
|
|
|
|
2019-08-18 09:46:49 +00:00
|
|
|
postPatch = ''
|
2023-02-19 23:44:21 +00:00
|
|
|
# relax dependencies
|
2021-04-18 02:09:09 +00:00
|
|
|
sed -i 's/==/>=/' requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
aiohttp-jinja2
|
|
|
|
astral
|
2020-11-18 14:52:17 +00:00
|
|
|
azure-keyvault-secrets
|
2021-04-18 02:09:09 +00:00
|
|
|
azure-mgmt-compute
|
|
|
|
azure-mgmt-resource
|
|
|
|
azure-mgmt-storage
|
|
|
|
azure-storage-blob
|
|
|
|
bcrypt
|
|
|
|
cchardet
|
|
|
|
deepdiff
|
|
|
|
feedparser
|
|
|
|
iso8601
|
|
|
|
jinja2
|
|
|
|
paho-mqtt
|
|
|
|
pid
|
|
|
|
pygments
|
|
|
|
python-dateutil
|
|
|
|
python-engineio
|
|
|
|
python-socketio
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
sockjs
|
|
|
|
uvloop
|
|
|
|
voluptuous
|
2021-06-15 11:12:45 +00:00
|
|
|
websocket-client
|
2021-04-18 02:09:09 +00:00
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/appdaemon -v | grep -q "${version}"
|
2019-08-18 09:46:49 +00:00
|
|
|
'';
|
|
|
|
|
2018-02-28 01:38:11 +00:00
|
|
|
meta = with lib; {
|
2020-12-30 20:41:06 +00:00
|
|
|
description = "Sandboxed Python execution environment for writing automation apps for Home Assistant";
|
2021-03-15 22:09:14 +00:00
|
|
|
homepage = "https://github.com/AppDaemon/appdaemon";
|
2023-02-19 23:44:21 +00:00
|
|
|
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.rst";
|
2018-02-28 01:38:11 +00:00
|
|
|
license = licenses.mit;
|
2021-04-06 13:51:34 +00:00
|
|
|
maintainers = teams.home-assistant.members;
|
2018-02-28 01:38:11 +00:00
|
|
|
};
|
|
|
|
}
|