mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-14 03:10:07 +00:00
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "appdaemon";
|
|
version = "4.5.13";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AppDaemon";
|
|
repo = "appdaemon";
|
|
tag = version;
|
|
hash = "sha256-uVlrLyj8GZo1T8AKBxpVTPPqUrwxmyMbgaopmEGZiR4=";
|
|
};
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
aiohttp
|
|
aiohttp-jinja2
|
|
astral
|
|
bcrypt
|
|
deepdiff
|
|
feedparser
|
|
iso8601
|
|
paho-mqtt
|
|
pid
|
|
pydantic
|
|
python-dateutil
|
|
python-socketio
|
|
pytz
|
|
pyyaml
|
|
requests
|
|
sockjs
|
|
uvloop
|
|
tomli
|
|
tomli-w
|
|
];
|
|
|
|
# no tests implemented
|
|
checkPhase = ''
|
|
$out/bin/appdaemon -v | grep -q "${version}"
|
|
'';
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
teams = [ lib.teams.home-assistant ];
|
|
};
|
|
}
|