mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(hass): pin to python312 for a bit...
This commit is contained in:
parent
bd5f0aaf54
commit
6b7c9f855d
1 changed files with 2 additions and 7 deletions
|
|
@ -214,6 +214,7 @@ in {
|
|||
];
|
||||
package = let
|
||||
inherit (cfg.package) python;
|
||||
needsPython312pin = cfg.grocy.enable && lib.versionAtLeast pkgs.home-assistant.python.version "3.13";
|
||||
# https://github.com/pysnmp/pysnmp/issues/51
|
||||
needsPyasn1pin =
|
||||
if lib.versionOlder python.pkgs.pysnmplib.version "6.0"
|
||||
|
|
@ -221,6 +222,7 @@ in {
|
|||
else lib.warn "pyasn1 pin likely no longer needed" false;
|
||||
pyasn1prefix = "${python.pkgs.pysnmp-pyasn1}/${python.sitePackages}";
|
||||
home-assistant = pkgs.home-assistant.override {
|
||||
${if needsPython312pin then "python313" else null} = pkgs.python312;
|
||||
packageOverrides = self: super: {
|
||||
brother = super.brother.overridePythonAttrs (old: {
|
||||
dontCheckRuntimeDeps =
|
||||
|
|
@ -241,13 +243,6 @@ in {
|
|||
"test_idle_timeout"
|
||||
]);
|
||||
});
|
||||
env-canada = super.env-canada.overridePythonAttrs (old: {
|
||||
dependencies =
|
||||
old.dependencies
|
||||
++ [
|
||||
self.defusedxml
|
||||
];
|
||||
});
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue