appdaemon: fix astral dependency (#116777)

appdaemon v4.0.5 pins astral to v1.10.1. The appdaemon package
definition removes this pinning. However, the current nixpkgs version of
astral (v2.x) is incompatible with the v1.x API. I added an override for
the astral package to bring back v1.10.1 into this derivation.
This commit is contained in:
Marius Bergmann 2021-03-20 14:05:41 +01:00 committed by GitHub
parent 7f21b53fc0
commit a04bdd8fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,14 @@
let
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 {
@ -62,7 +70,6 @@ in python.pkgs.buildPythonApplication rec {
--replace "sockjs==0.10.0" "sockjs" \
--replace "deepdiff==4.3.1" "deepdiff" \
--replace "voluptuous==0.11.7" "voluptuous" \
--replace "astral==1.10.1" "astral" \
--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" \