nixpkgs/pkgs/servers/home-assistant/appdaemon.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.2 KiB
Nix
Raw Normal View History

{ 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";
version = "4.4.2";
pyproject = true;
2020-01-28 22:42:21 +00:00
src = fetchFromGitHub {
owner = "AppDaemon";
repo = "appdaemon";
rev = "refs/tags/${version}";
hash = "sha256-T3InE4J4qYeFJTq6nrW8y5BOA7Z0n3t9eVpl641r/xk=";
2018-02-28 01:38:11 +00:00
};
pythonRelaxDeps = true;
2021-04-18 02:09:09 +00:00
nativeBuildInputs = with python3.pkgs; [
setuptools
];
2021-04-18 02:09:09 +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
websocket-client
tomli
tomli-w
2021-04-18 02:09:09 +00:00
];
# 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";
mainProgram = "appdaemon";
homepage = "https://github.com/AppDaemon/appdaemon";
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.md";
2018-02-28 01:38:11 +00:00
license = licenses.mit;
maintainers = teams.home-assistant.members;
2018-02-28 01:38:11 +00:00
};
}