Merge pull request #119765 from mweinelt/appdaemon
appdaemon: 4.0.5 -> 4.0.8
This commit is contained in:
commit
f4b036d5bd
@ -3,79 +3,61 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
python = python3.override {
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
astral = super.astral.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "1.10.1";
|
|
||||||
src = oldAttrs.src.override {
|
|
||||||
inherit version;
|
|
||||||
sha256 = "1wbvnqffbgh8grxm07cabdpahlnyfq91pyyaav432cahqi1p59nj";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
bcrypt = super.bcrypt.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "3.1.7";
|
|
||||||
src = oldAttrs.src.override {
|
|
||||||
inherit version;
|
|
||||||
sha256 = "CwBpx1LsFBcsX3ggjxhj161nVab65v527CyA0TvkHkI=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
yarl = super.yarl.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "1.4.2";
|
|
||||||
src = oldAttrs.src.override {
|
|
||||||
inherit version;
|
|
||||||
sha256 = "WM2cRp7O1VjNgao/SEspJOiJcEngaIno/yUQQ1t+90s=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
in python.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "appdaemon";
|
pname = "appdaemon";
|
||||||
version = "4.0.5";
|
version = "4.0.8";
|
||||||
disabled = python.pythonOlder "3.6";
|
disabled = python3.pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AppDaemon";
|
owner = "AppDaemon";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "7o6DrTufAC+qK3dDfpkuQMQWuduCZ6Say/knI4Y07QM=";
|
sha256 = "04a4qx0rbx2vpkzpibmwkpy7fawa6dbgqlrllryrl7dchbrf703q";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
# relax dependencies
|
||||||
daemonize astral requests websocket_client aiohttp yarl jinja2
|
postPatch = ''
|
||||||
aiohttp-jinja2 pyyaml voluptuous feedparser iso8601 bcrypt paho-mqtt setuptools
|
substituteInPlace requirements.txt \
|
||||||
deepdiff dateutil bcrypt python-socketio pid pytz sockjs pygments
|
--replace "deepdiff==5.2.3" "deepdiff" \
|
||||||
azure-mgmt-compute azure-mgmt-storage azure-mgmt-resource azure-keyvault-secrets azure-storage-blob
|
--replace "pygments==2.8.1" "pygments"
|
||||||
|
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
|
||||||
|
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
|
# no tests implemented
|
||||||
doCheck = false;
|
checkPhase = ''
|
||||||
|
$out/bin/appdaemon -v | grep -q "${version}"
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "pyyaml==5.3" "pyyaml" \
|
|
||||||
--replace "pid==2.2.5" "pid" \
|
|
||||||
--replace "Jinja2==2.11.1" "Jinja2" \
|
|
||||||
--replace "pytz==2019.3" "pytz" \
|
|
||||||
--replace "aiohttp==3.6.2" "aiohttp>=3.6" \
|
|
||||||
--replace "iso8601==0.1.12" "iso8601>=0.1" \
|
|
||||||
--replace "azure==4.0.0" "azure-mgmt-compute
|
|
||||||
azure-mgmt-storage
|
|
||||||
azure-mgmt-resource
|
|
||||||
azure-keyvault-secrets
|
|
||||||
azure-storage-blob" \
|
|
||||||
--replace "sockjs==0.10.0" "sockjs" \
|
|
||||||
--replace "deepdiff==4.3.1" "deepdiff" \
|
|
||||||
--replace "voluptuous==0.11.7" "voluptuous" \
|
|
||||||
--replace "python-socketio==4.4.0" "python-socketio" \
|
|
||||||
--replace "feedparser==5.2.1" "feedparser>=5.2.1" \
|
|
||||||
--replace "aiohttp_jinja2==1.2.0" "aiohttp_jinja2>=1.2.0" \
|
|
||||||
--replace "pygments==2.6.1" "pygments>=2.6.1" \
|
|
||||||
--replace "paho-mqtt==1.5.0" "paho-mqtt>=1.5.0" \
|
|
||||||
--replace "websocket-client==0.57.0" "websocket-client>=0.57.0"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user