mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-09 12:05:50 +03:00
home-assistant: 2023.1.7 -> 2023.2.0
https://www.home-assistant.io/blog/2023/02/01/release-20232/
This commit is contained in:
parent
23025f98ec
commit
d520a5af44
4 changed files with 373 additions and 124 deletions
File diff suppressed because it is too large
Load diff
|
@ -78,22 +78,6 @@ let
|
|||
];
|
||||
});
|
||||
|
||||
caldav = super.caldav.overridePythonAttrs (old: rec {
|
||||
version = "0.9.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-caldav";
|
||||
repo = "caldav";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Gil0v4pGyp5+TnYPjb8Vk0xTqnQKaeD8Ko/ZWhvkbUk=";
|
||||
};
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace ", 'xandikos<0.2.4'" "" \
|
||||
--replace ", 'radicale'" ""
|
||||
'';
|
||||
nativeCheckInputs = old.nativeCheckInputs ++ [ self.nose ];
|
||||
});
|
||||
|
||||
dsmr-parser = super.dsmr-parser.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.33";
|
||||
src = fetchFromGitHub {
|
||||
|
@ -114,15 +98,6 @@ let
|
|||
};
|
||||
});
|
||||
|
||||
icalendar = super.icalendar.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "4.1.0";
|
||||
src = self.fetchPypi {
|
||||
inherit (oldAttrs) pname;
|
||||
inherit version;
|
||||
hash = "sha256-l0i3wC78xD5Y0GFa4JdqxPJl6Q2t7ptPiE3imQXBs5U=";
|
||||
};
|
||||
});
|
||||
|
||||
# Pinned due to API changes in 10.0
|
||||
mcstatus = super.mcstatus.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "9.3.0";
|
||||
|
@ -176,27 +151,6 @@ let
|
|||
};
|
||||
});
|
||||
|
||||
pymodbus = super.pymodbus.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "2.5.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "riptideio";
|
||||
repo = "pymodbus";
|
||||
rev= "refs/tags/v${version}";
|
||||
hash = "sha256-pf1TU/imBqNVYdG4XX8fnma8O8kQHuOHu6DT3E/PUk4=";
|
||||
};
|
||||
});
|
||||
|
||||
# Pinned due to API changes in 1.0.24
|
||||
pysensibo = super.pysensibo.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "1.0.22";
|
||||
src = fetchFromGitHub {
|
||||
owner = "andrey-git";
|
||||
repo = "pysensibo";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-AUcdKcdoYCg8OgUcFoLLpNK5GQMTg89XCR5CkTfNkcc=";
|
||||
};
|
||||
});
|
||||
|
||||
python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec {
|
||||
pname = "python-slugify";
|
||||
version = "4.0.1";
|
||||
|
@ -206,6 +160,16 @@ let
|
|||
};
|
||||
});
|
||||
|
||||
pytradfri = super.pytradfri.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "9.0.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "home-assistant-libs";
|
||||
repo = "pytradfri";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-xOdTzG0bF5p1QpkXv2btwrVugQRjSwdAj8bXcC0IoQg=";
|
||||
};
|
||||
});
|
||||
|
||||
python-telegram-bot = super.python-telegram-bot.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "13.15";
|
||||
src = fetchFromGitHub {
|
||||
|
@ -235,25 +199,6 @@ let
|
|||
doCheck = false;
|
||||
});
|
||||
|
||||
pytradfri = super.pytradfri.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "9.0.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "home-assistant-libs";
|
||||
repo = "pytradfri";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-12ol+2CnoPfkxmDGJJAkoafHGpQuWC4lh0N7lSvx2DE=";
|
||||
};
|
||||
});
|
||||
|
||||
pysoma = super.pysoma.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.0.10";
|
||||
src = super.fetchPypi {
|
||||
pname = "pysoma";
|
||||
inherit version;
|
||||
hash = "sha256-sU1qHbAjdIUu0etjate8+U1zvunbw3ddBtDVUU10CuE=";
|
||||
};
|
||||
});
|
||||
|
||||
# Pinned due to API changes in 0.3.0
|
||||
tailscale = super.tailscale.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.2.0";
|
||||
|
@ -326,7 +271,7 @@ let
|
|||
extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
|
||||
|
||||
# Don't forget to run parse-requirements.py after updating
|
||||
hassVersion = "2023.1.7";
|
||||
hassVersion = "2023.2.0";
|
||||
|
||||
in python.pkgs.buildPythonApplication rec {
|
||||
pname = "homeassistant";
|
||||
|
@ -334,7 +279,7 @@ in python.pkgs.buildPythonApplication rec {
|
|||
format = "pyproject";
|
||||
|
||||
# check REQUIRED_PYTHON_VER in homeassistant/const.py
|
||||
disabled = python.pythonOlder "3.9";
|
||||
disabled = python.pythonOlder "3.10";
|
||||
|
||||
# don't try and fail to strip 6600+ python files, it takes minutes!
|
||||
dontStrip = true;
|
||||
|
@ -344,7 +289,7 @@ in python.pkgs.buildPythonApplication rec {
|
|||
owner = "home-assistant";
|
||||
repo = "core";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-z8dTFRs7Tm4WTQcYeHu9jlGbva9yNPhjmQ+CQY+9DN4=";
|
||||
hash = "sha256-tW1tVPJ50DIGIuxJP9nq4+Tw4fiPA+kINSclW7JkJmE=";
|
||||
};
|
||||
|
||||
# leave this in, so users don't have to constantly update their downstream patch handling
|
||||
|
@ -368,6 +313,7 @@ in python.pkgs.buildPythonApplication rec {
|
|||
"ifaddr"
|
||||
"orjson"
|
||||
"PyJWT"
|
||||
"pyOpenSSL"
|
||||
"requests"
|
||||
"typing-extensions"
|
||||
"yarl"
|
||||
|
|
|
@ -4,7 +4,7 @@ buildPythonPackage rec {
|
|||
# the frontend version corresponding to a specific home-assistant version can be found here
|
||||
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
|
||||
pname = "home-assistant-frontend";
|
||||
version = "20230110.0";
|
||||
version = "20230201.0";
|
||||
format = "wheel";
|
||||
|
||||
src = fetchPypi {
|
||||
|
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
|||
pname = "home_assistant_frontend";
|
||||
dist = "py3";
|
||||
python = "py3";
|
||||
hash = "sha256-axtDtkIsTFWV8qtVvpYL4aDE5jbTdX4Qo5V+9taWuNo=";
|
||||
hash = "sha256-CG4I3YI1swiAV02+NXvi9n87dXrTJFlMUcOnB9ebmWk=";
|
||||
};
|
||||
|
||||
# there is nothing to strip in this package
|
||||
|
|
|
@ -34,11 +34,6 @@ let
|
|||
};
|
||||
|
||||
extraDisabledTestPaths = {
|
||||
tado = [
|
||||
# tado/test_{climate,water_heater}.py: Tries to connect to my.tado.com
|
||||
"tests/components/tado/test_climate.py"
|
||||
"tests/components/tado/test_water_heater.py"
|
||||
];
|
||||
};
|
||||
|
||||
extraDisabledTests = {
|
||||
|
@ -46,21 +41,9 @@ let
|
|||
# homeassistant.components.roku.media_player:media_player.py:428 Media type music is not supported with format None (mime: audio/x-matroska)
|
||||
"test_services_play_media_audio"
|
||||
];
|
||||
rfxtrx = [
|
||||
# bytearrray mismatch
|
||||
"test_rfy_cover"
|
||||
];
|
||||
zha = [
|
||||
# 'manual_pick_radio_type' == 'choose_serial_port'
|
||||
"test_options_flow_migration_reset_old_adapter"
|
||||
];
|
||||
};
|
||||
|
||||
extraPytestFlagsArray = {
|
||||
asuswrt = [
|
||||
# Sandbox network limitations, fails with unexpected error
|
||||
"--deselect tests/components/asuswrt/test_config_flow.py::test_on_connect_failed"
|
||||
];
|
||||
dnsip = [
|
||||
# AssertionError: assert <FlowResultType.FORM: 'form'> == <FlowResultTy...create_entry'>
|
||||
"--deselect tests/components/dnsip/test_config_flow.py::test_options_flow"
|
||||
|
@ -69,6 +52,9 @@ let
|
|||
# Flaky: AssertionError: assert '0.0' == '12.0'
|
||||
"--deselect tests/components/history_stats/test_sensor.py::test_end_time_with_microseconds_zeroed"
|
||||
];
|
||||
logbook = [
|
||||
"--deselect tests/components/logbook/test_websocket_api.py::test_recorder_is_far_behind "
|
||||
];
|
||||
modem_callerid = [
|
||||
# aioserial mock produces wrong state
|
||||
"--deselect tests/components/modem_callerid/test_init.py::test_setup_entry"
|
||||
|
@ -77,20 +63,6 @@ let
|
|||
# "TypeError: object Mock can't be used in 'await' expression
|
||||
"--deselect tests/components/unifiprotect/test_repairs.py::test_ea_warning_fix"
|
||||
];
|
||||
skybell = [
|
||||
# Sandbox network limitations: Cannot connect to host cloud.myskybell.com:443
|
||||
"--deselect tests/components/skybell/test_config_flow.py::test_flow_user_unknown_error"
|
||||
];
|
||||
stream = [
|
||||
# Tries to write to /example and gets "Permission denied"
|
||||
"--deselect tests/components/stream/test_recorder.py::test_record_lookback"
|
||||
"--deselect tests/components/stream/test_recorder.py::test_recorder_log"
|
||||
"--deselect tests/components/stream/test_worker.py::test_get_image"
|
||||
];
|
||||
zha = [
|
||||
# AssertionError: assert 'manual_pick_radio_type' == 'choose_serial_port'
|
||||
"--deselect tests/components/zha/test_config_flow.py::test_options_flow_restarts_running_zha_if_cancelled"
|
||||
];
|
||||
};
|
||||
in lib.listToAttrs (map (component: lib.nameValuePair component (
|
||||
home-assistant.overridePythonAttrs (old: {
|
||||
|
@ -121,9 +93,6 @@ in lib.listToAttrs (map (component: lib.nameValuePair component (
|
|||
|
||||
meta = old.meta // {
|
||||
broken = lib.elem component [
|
||||
# all tests are skipped
|
||||
# https://github.com/home-assistant/core/blob/dev/tests/components/homeassistant_hardware/test_silabs_multiprotocol_addon.py#L23
|
||||
"homeassistant_hardware"
|
||||
];
|
||||
# upstream only tests on Linux, so do we.
|
||||
platforms = lib.platforms.linux;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue