forked from mirrors/nixpkgs
1bd4b71a35
The former packages has seen its last release in 2020-10 and can be considered abandoned. Meanwhile a new fork has appeared in faust-cchardet, that we're going to use in its place. Co-Authored-By: Robert Schütz <nix@dotlambda.de>
70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "appdaemon";
|
|
version = "4.2.1";
|
|
format = "setuptools";
|
|
|
|
disabled = python3.pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AppDaemon";
|
|
repo = "appdaemon";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-4sN0optkMmyWb5Cd3F7AhcXYHh7aidJE/bieYMEKgSY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# relax dependencies
|
|
sed -i 's/==/>=/' requirements.txt
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
aiodns
|
|
aiohttp
|
|
aiohttp-jinja2
|
|
astral
|
|
azure-keyvault-secrets
|
|
azure-mgmt-compute
|
|
azure-mgmt-resource
|
|
azure-mgmt-storage
|
|
azure-storage-blob
|
|
bcrypt
|
|
faust-cchardet
|
|
deepdiff
|
|
feedparser
|
|
iso8601
|
|
jinja2
|
|
paho-mqtt
|
|
pid
|
|
pygments
|
|
python-dateutil
|
|
python-engineio
|
|
python-socketio
|
|
pytz
|
|
pyyaml
|
|
requests
|
|
sockjs
|
|
uvloop
|
|
voluptuous
|
|
websocket-client
|
|
yarl
|
|
];
|
|
|
|
# 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";
|
|
homepage = "https://github.com/AppDaemon/appdaemon";
|
|
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.rst";
|
|
license = licenses.mit;
|
|
maintainers = teams.home-assistant.members;
|
|
};
|
|
}
|