3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #193565 from NixOS/home-assistant

This commit is contained in:
Martin Weinelt 2022-09-30 18:00:37 +02:00 committed by GitHub
commit 656e267275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 166 additions and 64 deletions

View file

@ -415,7 +415,7 @@ in {
# Empty string first, so we will never accidentally have an empty capability bounding set # Empty string first, so we will never accidentally have an empty capability bounding set
# https://github.com/NixOS/nixpkgs/issues/120617#issuecomment-830685115 # https://github.com/NixOS/nixpkgs/issues/120617#issuecomment-830685115
"" ""
] ++ lib.optionals (builtins.any useComponent [ "bluetooth" "bluetooth_le_tracker" "bluetooth_tracker" "eq3btsmart" "fjaraskupan" "govee_ble" "homekit_controller" "inkbird" "moat" "sensorpush" "switchbot" "xiaomi_ble" ]) [ ] ++ lib.optionals (builtins.any useComponent componentsUsingBluetooth) [
# Required for interaction with hci devices and bluetooth sockets, identified by bluetooth-adapters dependency # Required for interaction with hci devices and bluetooth sockets, identified by bluetooth-adapters dependency
# https://www.home-assistant.io/integrations/bluetooth_le_tracker/#rootless-setup-on-core-installs # https://www.home-assistant.io/integrations/bluetooth_le_tracker/#rootless-setup-on-core-installs
"CAP_NET_ADMIN" "CAP_NET_ADMIN"
@ -432,8 +432,30 @@ in {
]); ]);
componentsUsingBluetooth = [ componentsUsingBluetooth = [
# Components that require the AF_BLUETOOTH address family # Components that require the AF_BLUETOOTH address family
"bluetooth_tracker" "august"
"bluemaestro"
"bluetooth"
"bluetooth_le_tracker" "bluetooth_le_tracker"
"bluetooth_tracker"
"bthome"
"default_config"
"eq3btsmart"
"esphome"
"fjaraskupan"
"govee_ble"
"homekit_controller"
"inkbird"
"led_ble"
"melnor"
"moat"
"qingping"
"sensorpro"
"sensorpush"
"switchbot"
"thermobeacon"
"thermopro"
"xiaomi_ble"
"yalexs_ble"
]; ];
componentsUsingPing = [ componentsUsingPing = [
# Components that require the capset syscall for the ping wrapper # Components that require the capset syscall for the ping wrapper
@ -450,7 +472,6 @@ in {
# mostly the ones using config flows already. # mostly the ones using config flows already.
"acer_projector" "acer_projector"
"alarmdecoder" "alarmdecoder"
"arduino"
"blackbird" "blackbird"
"deconz" "deconz"
"dsmr" "dsmr"
@ -464,7 +485,6 @@ in {
"insteon" "insteon"
"kwb" "kwb"
"lacrosse" "lacrosse"
"mhz19"
"modbus" "modbus"
"modem_callerid" "modem_callerid"
"mysensors" "mysensors"
@ -480,7 +500,6 @@ in {
"usb" "usb"
"velbus" "velbus"
"w800rf32" "w800rf32"
"xbee"
"zha" "zha"
"zwave" "zwave"
"zwave_js" "zwave_js"

View file

@ -1,4 +1,5 @@
{ lib { lib
, async-timeout
, buildPythonPackage , buildPythonPackage
, dnspython , dnspython
, fetchFromGitHub , fetchFromGitHub
@ -12,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiodiscover"; pname = "aiodiscover";
version = "1.4.11"; version = "1.4.13";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,10 +22,11 @@ buildPythonPackage rec {
owner = "bdraco"; owner = "bdraco";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-s5g8otQSWTAOkN4q1LrM/FxVlOnGSv8XKtIDkdwcHMg="; sha256 = "sha256-tIbLb4Jk3vR1hVcdUPuYJrse7BcfE4Z/dXShs/uBDBo=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
async-timeout
dnspython dnspython
netifaces netifaces
pyroute2 pyroute2

View file

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohomekit"; pname = "aiohomekit";
version = "1.5.2"; version = "1.5.12";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "Jc2k"; owner = "Jc2k";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-2EU7Um3uxGP1LBt/PEg2s6v7iny60NHCg8ixX+lIsZY="; hash = "sha256-v29esQUrrpF8PGafu9LF/rN/W8xRSIe+H9V+R4toPxk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "airthings-ble"; pname = "airthings-ble";
version = "0.5.1"; version = "0.5.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -18,12 +18,12 @@ buildPythonPackage rec {
owner = "vincegio"; owner = "vincegio";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-polhWyEyu7ZaJ0fgXOhai+I/XhI8FTYYQGrRxiqAOPc="; hash = "sha256-EPzYIPoT5yAdobmdfaehOYhYeKM6NMpcNZWVR2Dac8k=";
}; };
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'bleak = "^0.15.1"' 'bleak = "*"' --replace 'bleak-retry-connector = "^0.15.1"' 'bleak = "*"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bleak-retry-connector"; pname = "bleak-retry-connector";
version = "1.16.0"; version = "2.1.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices"; owner = "Bluetooth-Devices";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-IDfamUZB9WJH+ybZ0ULBSEd1koMHTZ1/DaFTf6oviM8="; hash = "sha256-fEdyo6QBmHWgl5o/ZIu/HM8GWp5t88awhb+7SPWngf0=";
}; };
postPatch = '' postPatch = ''

View file

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bleak"; pname = "bleak";
version = "0.17.0"; version = "0.18.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "hbldh"; owner = "hbldh";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-AnH23AWrLw2jq6gSbx9VoGD8QXeCH5dN7FSVVdj4b3w="; hash = "sha256-2/jJ2C2TudwCAshDBLUQjNMbYa2j4XfW8bXmeWrAyrA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -2,6 +2,7 @@
, aioconsole , aioconsole
, bleak , bleak
, buildPythonPackage , buildPythonPackage
, dbus-next
, fetchFromGitHub , fetchFromGitHub
, numpy , numpy
, pytestCheckHook , pytestCheckHook
@ -24,6 +25,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
bleak bleak
dbus-next
]; ];
checkInputs = [ checkInputs = [

View file

@ -4,7 +4,8 @@
, fetchFromGitHub , fetchFromGitHub
, poetry-core , poetry-core
, async-timeout , async-timeout
, dbus-next , bleak
, dbus-fast
, myst-parser , myst-parser
, pytestCheckHook , pytestCheckHook
, sphinxHook , sphinxHook
@ -13,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bluetooth-adapters"; pname = "bluetooth-adapters";
version = "0.3.6"; version = "0.5.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -22,7 +23,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices"; owner = "Bluetooth-Devices";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-mekruNzoix61idaGv/BIgb1fwKcA/+UGOnjX85jQWDQ="; hash = "sha256-SyEe/auJaagRl3wg7JjBkLAgHyAeCeesEXvWXE733M4=";
}; };
postPatch = '' postPatch = ''
@ -44,7 +45,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
async-timeout async-timeout
dbus-next bleak
dbus-fast
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

View file

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "led-ble"; pname = "led-ble";
version = "0.7.1"; version = "0.10.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices"; owner = "Bluetooth-Devices";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-WjSMyuxxScJMtrQAvCHX98IXzbO2dWAsAaOwXf6TEDg="; hash = "sha256-GyVj9g4tqPaR5Gd8N76TtkldaAATnEBsSs/F+2iQqGM=";
}; };
postPatch = '' postPatch = ''

View file

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "xiaomi-ble"; pname = "xiaomi-ble";
version = "0.9.2"; version = "0.10.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices"; owner = "Bluetooth-Devices";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-FitHVfl/N2Q9bixmJFyADBytuM3T4A/D+/36lAU9vls="; hash = "sha256-qpGw9c7O8MC6AEutRIqCEdZncJSQKesaHFRQjOxpa2U=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "yalexs-ble"; pname = "yalexs-ble";
version = "1.6.4"; version = "1.9.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "bdraco"; owner = "bdraco";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-aE8JrGNfsNeJdpoKzyxd/ixYO1WSKCPgXpiV0+HQOcI="; hash = "sha256-ypZ0VDGgQcwlMS1POW+lvTlmd02P7bPR2Qo0lDyBYUw=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "zha-quirks"; pname = "zha-quirks";
version = "0.0.79"; version = "0.0.80";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "zigpy"; owner = "zigpy";
repo = "zha-device-handlers"; repo = "zha-device-handlers";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-7qE0HLp/ehwHdwVWb0H4eCwCCTUUySAPoZewLYE/MUw="; hash = "sha256-tmXOkOUW2d3Kntx1wgzN3J4l5jrSfz2q9YT1gfHjtro=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -2,6 +2,7 @@
, asynctest , asynctest
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, pyserial , pyserial
, pyserial-asyncio , pyserial-asyncio
, pytest-asyncio , pytest-asyncio
@ -38,9 +39,8 @@ buildPythonPackage rec {
]; ];
disabledTests = [ disabledTests = [
# assertion failure # https://github.com/zigpy/zigpy-xbee/issues/126
# E assert ff:ff:ff:ff:ff:ff:ff:ff is None "test_form_network"
"test_startup_api_mode_config_fails"
]; ];
meta = with lib; { meta = with lib; {

View file

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "zigpy"; pname = "zigpy";
version = "0.50.2"; version = "0.50.3";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "zigpy"; owner = "zigpy";
repo = "zigpy"; repo = "zigpy";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-0Ha2CgJLLLZjMEEj07GL6kbKcM+x0YblVIjABiaAhXg="; hash = "sha256-Od5BEi5Cu1Gzd4ZkPc2lfmsEZoqsxqiUKqZ2vkW/8sE=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -2,7 +2,7 @@
# Do not edit! # Do not edit!
{ {
version = "2022.9.1"; version = "2022.9.7";
components = { components = {
"abode" = ps: with ps; [ "abode" = ps: with ps; [
abodepy abodepy
@ -192,9 +192,11 @@
]; ];
"august" = ps: with ps; [ "august" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
yalexs-ble yalexs-ble
@ -284,10 +286,12 @@
]; ];
"bluemaestro" = ps: with ps; [ "bluemaestro" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluemaestro-ble bluemaestro-ble
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
]; ];
@ -298,17 +302,21 @@
]; ];
"bluetooth" = ps: with ps; [ "bluetooth" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
]; ];
"bluetooth_le_tracker" = ps: with ps; [ "bluetooth_le_tracker" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
]; ];
@ -354,10 +362,12 @@
]; # missing inputs: btsmarthub_devicelist ]; # missing inputs: btsmarthub_devicelist
"bthome" = ps: with ps; [ "bthome" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
bthome-ble bthome-ble
dbus-fast
pyserial pyserial
pyudev pyudev
]; ];
@ -525,9 +535,11 @@
aiodiscover aiodiscover
aiohttp-cors aiohttp-cors
async-upnp-client async-upnp-client
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
fnvhash fnvhash
hass-nabucasa hass-nabucasa
home-assistant-frontend home-assistant-frontend
@ -691,6 +703,7 @@
]; # missing inputs: py-sucks ]; # missing inputs: py-sucks
"ecowitt" = ps: with ps; [ "ecowitt" = ps: with ps; [
aioecowitt aioecowitt
aiohttp-cors
]; ];
"eddystone_temperature" = ps: with ps; [ "eddystone_temperature" = ps: with ps; [
construct construct
@ -782,10 +795,12 @@
]; # missing inputs: epsonprinter ]; # missing inputs: epsonprinter
"eq3btsmart" = ps: with ps; [ "eq3btsmart" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
construct construct
dbus-fast
pyserial pyserial
pyudev pyudev
]; # missing inputs: python-eq3bt ]; # missing inputs: python-eq3bt
@ -795,9 +810,11 @@
"esphome" = ps: with ps; [ "esphome" = ps: with ps; [
aioesphomeapi aioesphomeapi
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
ifaddr ifaddr
pyserial pyserial
pyudev pyudev
@ -887,9 +904,11 @@
]; ];
"fjaraskupan" = ps: with ps; [ "fjaraskupan" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
fjaraskupan fjaraskupan
pyserial pyserial
pyudev pyudev
@ -1088,9 +1107,11 @@
]; ];
"govee_ble" = ps: with ps; [ "govee_ble" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
govee-ble govee-ble
pyserial pyserial
pyudev pyudev
@ -1236,9 +1257,11 @@
"homekit_controller" = ps: with ps; [ "homekit_controller" = ps: with ps; [
aiohomekit aiohomekit
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
ifaddr ifaddr
pyserial pyserial
pyudev pyudev
@ -1343,9 +1366,11 @@
]; ];
"inkbird" = ps: with ps; [ "inkbird" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
inkbird-ble inkbird-ble
pyserial pyserial
pyudev pyudev
@ -1516,9 +1541,11 @@
]; ];
"led_ble" = ps: with ps; [ "led_ble" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
led-ble led-ble
pyserial pyserial
pyudev pyudev
@ -1681,9 +1708,11 @@
]; # missing inputs: py-melissa-climate ]; # missing inputs: py-melissa-climate
"melnor" = ps: with ps; [ "melnor" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
]; # missing inputs: melnor-bluetooth ]; # missing inputs: melnor-bluetooth
@ -1752,9 +1781,11 @@
]; ];
"moat" = ps: with ps; [ "moat" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
moat-ble moat-ble
pyserial pyserial
pyudev pyudev
@ -2255,9 +2286,11 @@
]; # missing inputs: python-qbittorrent ]; # missing inputs: python-qbittorrent
"qingping" = ps: with ps; [ "qingping" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
qingping-ble qingping-ble
@ -2503,18 +2536,22 @@
]; ];
"sensorpro" = ps: with ps; [ "sensorpro" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
sensorpro-ble sensorpro-ble
]; ];
"sensorpush" = ps: with ps; [ "sensorpush" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
sensorpush-ble sensorpush-ble
@ -2789,9 +2826,11 @@
"switchbot" = ps: with ps; [ "switchbot" = ps: with ps; [
pyswitchbot pyswitchbot
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
]; ];
@ -2893,18 +2932,22 @@
]; # missing inputs: pytfiac ]; # missing inputs: pytfiac
"thermobeacon" = ps: with ps; [ "thermobeacon" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
thermobeacon-ble thermobeacon-ble
]; ];
"thermopro" = ps: with ps; [ "thermopro" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
thermopro-ble thermopro-ble
@ -3281,9 +3324,11 @@
]; ];
"xiaomi_ble" = ps: with ps; [ "xiaomi_ble" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
xiaomi-ble xiaomi-ble
@ -3306,9 +3351,11 @@
]; ];
"yalexs_ble" = ps: with ps; [ "yalexs_ble" = ps: with ps; [
aiohttp-cors aiohttp-cors
bleak-retry-connector
bleak bleak
bluetooth-adapters bluetooth-adapters
bluetooth-auto-recovery bluetooth-auto-recovery
dbus-fast
pyserial pyserial
pyudev pyudev
yalexs-ble yalexs-ble

View file

@ -30,17 +30,6 @@ let
defaultOverrides = [ defaultOverrides = [
# Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
(self: super: {
advantage-air = super.advantage-air.overridePythonAttrs (oldAttrs: rec {
version = "0.3.1";
src = super.fetchPypi {
pname = "advantage_air";
inherit version;
hash = "sha256-C+cB6oHmbr9mHZKnbls42yenQy3+L8huLk9wKazIWfU=";
};
});
})
(self: super: { (self: super: {
backoff = super.backoff.overridePythonAttrs (oldAttrs: rec { backoff = super.backoff.overridePythonAttrs (oldAttrs: rec {
version = "1.11.1"; version = "1.11.1";
@ -67,6 +56,53 @@ let
}); });
}) })
(self: super: {
bleak = super.bleak.overridePythonAttrs (oldAttrs: rec {
version = "0.17.0";
src = fetchFromGitHub {
owner = "hbldh";
repo = "bleak";
rev = "refs/tags/v${version}";
hash = "sha256-AnH23AWrLw2jq6gSbx9VoGD8QXeCH5dN7FSVVdj4b3w=";
};
});
bleak-retry-connector = super.bleak-retry-connector.overridePythonAttrs (oldAttrs: rec {
version = "1.17.1";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bleak-retry-connector";
rev = "refs/tags/v${version}";
hash = "sha256-FoQ1cDORQaJcr6y9JaO4MigqV6jiBbwKNIIdYDgFNxQ=";
};
});
})
(self: super: {
blebox-uniapi = super.blebox-uniapi.overridePythonAttrs (oldAttrs: rec {
version = "2.0.2";
src = fetchFromGitHub {
owner = "blebox";
repo = "blebox_uniapi";
rev = "refs/tags/v${version}";
hash = "sha256-0Yiooy7YSUFjqqcyH2fPQ6AWuR0EJxfRRZTw/6JGcMA=";
};
});
})
(self: super: {
bluetooth-adapters = super.bluetooth-adapters.overridePythonAttrs (oldAttrs: rec {
version = "0.4.1";
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ super.dbus-fast ];
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bluetooth-adapters";
rev = "refs/tags/v${version}";
hash = "sha256-LAT4r6RHJWTkrZvuL1aSQDiztvXiOJwGmNQKGFnvFB8=";
};
});
})
(self: super: { (self: super: {
gridnet = super.gridnet.overridePythonAttrs (oldAttrs: rec { gridnet = super.gridnet.overridePythonAttrs (oldAttrs: rec {
version = "4.0.0"; version = "4.0.0";
@ -268,18 +304,6 @@ let
}); });
}) })
(self: super: {
xiaomi-ble = super.xiaomi-ble.overridePythonAttrs (oldAttrs: rec {
version = "0.9.0";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "xiaomi-ble";
rev = "refs/tags/v${version}";
hash = "sha256-xdh8WHrSkbuOGqSiIiufjiVaO719DMDYzbprE3s2kmQ=";
};
});
})
# home-assistant-frontend does not exist in python3.pkgs # home-assistant-frontend does not exist in python3.pkgs
(self: super: { (self: super: {
home-assistant-frontend = self.callPackage ./frontend.nix { }; home-assistant-frontend = self.callPackage ./frontend.nix { };
@ -309,7 +333,7 @@ let
extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
# Don't forget to run parse-requirements.py after updating # Don't forget to run parse-requirements.py after updating
hassVersion = "2022.9.1"; hassVersion = "2022.9.7";
in python.pkgs.buildPythonApplication rec { in python.pkgs.buildPythonApplication rec {
pname = "homeassistant"; pname = "homeassistant";
@ -327,7 +351,7 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant"; owner = "home-assistant";
repo = "core"; repo = "core";
rev = version; rev = version;
hash = "sha256-JXMLIMiwM1givdV6HcSGHI9v3zh8gMiF9khaGWR5e9I="; hash = "sha256-V6/y5HnJh8AVwkSg3uanYQRNvDcD1P0L+wBu98NpDek=";
}; };
# leave this in, so users don't have to constantly update their downstream patch handling # leave this in, so users don't have to constantly update their downstream patch handling

View file

@ -4,7 +4,7 @@ buildPythonPackage rec {
# the frontend version corresponding to a specific home-assistant version can be found here # 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 # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
pname = "home-assistant-frontend"; pname = "home-assistant-frontend";
version = "20220907.0"; version = "20220907.2";
format = "wheel"; format = "wheel";
src = fetchPypi { src = fetchPypi {
@ -12,7 +12,7 @@ buildPythonPackage rec {
pname = "home_assistant_frontend"; pname = "home_assistant_frontend";
dist = "py3"; dist = "py3";
python = "py3"; python = "py3";
sha256 = "sha256-G/2lOUffxKnEmd4mz/qAlNkzTNAUTfjKaGgvj6vG9ro="; sha256 = "sha256-ykId53EMPRXmMmoS55ZtjF6UR/JVPtBXFqjwuK2E2F4=";
}; };
# there is nothing to strip in this package # there is nothing to strip in this package

View file

@ -52,6 +52,10 @@ let
# Sandbox network limitations, fails with unexpected error # Sandbox network limitations, fails with unexpected error
"--deselect tests/components/asuswrt/test_config_flow.py::test_on_connect_failed" "--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"
];
history_stats = [ history_stats = [
# Flaky: AssertionError: assert '0.0' == '12.0' # Flaky: AssertionError: assert '0.0' == '12.0'
"--deselect tests/components/history_stats/test_sensor.py::test_end_time_with_microseconds_zeroed" "--deselect tests/components/history_stats/test_sensor.py::test_end_time_with_microseconds_zeroed"
@ -66,6 +70,10 @@ let
"--deselect tests/components/stream/test_recorder.py::test_recorder_log" "--deselect tests/components/stream/test_recorder.py::test_recorder_log"
"--deselect tests/components/stream/test_worker.py::test_get_image" "--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 ( in lib.listToAttrs (map (component: lib.nameValuePair component (
home-assistant.overridePythonAttrs (old: { home-assistant.overridePythonAttrs (old: {
@ -96,9 +104,7 @@ in lib.listToAttrs (map (component: lib.nameValuePair component (
meta = old.meta // { meta = old.meta // {
broken = lib.elem component [ broken = lib.elem component [
"blebox" # all tests fail with: AttributeError: Mock object has no attribute 'async_from_host' "modem_callerid"
"dnsip"
"ssdp"
"subaru" "subaru"
]; ];
# upstream only tests on Linux, so do we. # upstream only tests on Linux, so do we.