depot/third_party/nixpkgs/pkgs/servers/home-assistant/appdaemon.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

59 lines
1.2 KiB
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "appdaemon";
version = "4.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "AppDaemon";
repo = "appdaemon";
rev = "refs/tags/${version}";
hash = "sha256-T3InE4J4qYeFJTq6nrW8y5BOA7Z0n3t9eVpl641r/xk=";
};
pythonRelaxDeps = true;
nativeBuildInputs = with python3.pkgs; [
setuptools
];
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
];
# no tests implemented
checkPhase = ''
$out/bin/appdaemon -v | grep -q "${version}"
'';
meta = with lib; {
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";
license = licenses.mit;
maintainers = teams.home-assistant.members;
};
}