Merge pull request #293931 from NixOS/home-assistant

home-assistant: 2024.2.5 -> 2024.3.0
This commit is contained in:
Martin Weinelt 2024-03-07 13:10:39 +01:00 committed by GitHub
commit 5704371394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 289 additions and 194 deletions

View file

@ -4,7 +4,25 @@
, python3
}:
python3.pkgs.buildPythonApplication rec {
let
python = python3.override {
packageOverrides = self: super: {
pychromecast = super.pychromecast.overridePythonAttrs (_: rec {
version = "13.1.0";
src = fetchPypi {
pname = "PyChromecast";
inherit version;
hash = "sha256-COYai1S9IRnTyasewBNtPYVjqpfgo7V4QViLm+YMJnY=";
};
postPatch = "";
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "catt";
version = "0.12.11";
format = "pyproject";
@ -22,11 +40,11 @@ python3.pkgs.buildPythonApplication rec {
})
];
nativeBuildInputs = with python3.pkgs; [
nativeBuildInputs = with python.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = with python.pkgs; [
click
ifaddr
pychromecast

View file

@ -15,6 +15,7 @@ python3Packages.buildPythonApplication rec {
};
pythonRelaxDeps = [
"aiosqlite"
"pillow"
"httpx"
];

View file

@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, poetry-core
# dependencies
, scapy
# tests
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiodhcpwatcher";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiodhcpwatcher";
rev = "v${version}";
hash = "sha256-zZigXYUDSbXjlH810CgLa56xWYKcStBeKUbgsZ5WjOw=";
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [
poetry-core
];
dependencies = [
scapy
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aiodhcpwatcher"
];
meta = with lib; {
description = "Watch for DHCP packets with asyncio";
homepage = "https://github.com/bdraco/aiodhcpwatcher";
changelog = "https://github.com/bdraco/aiodhcpwatcher/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -9,8 +9,10 @@
# dependencies
, aiohappyeyeballs
, async-interrupt
, async-timeout
, chacha20poly1305-reuseable
, cryptography
, noiseprotocol
, protobuf
, zeroconf
@ -23,7 +25,7 @@
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "21.0.2";
version = "23.0.0";
pyproject = true;
disabled = pythonOlder "3.9";
@ -32,7 +34,7 @@ buildPythonPackage rec {
owner = "esphome";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-uNVf0wnqVntjTxkNTilvb0v6h3VBCjd91wbLQJ6q71g=";
hash = "sha256-iYaRA1Jj9Ew/s/LyS6U+NZ3TsAlXdDq0DAaudgFV5/o=";
};
nativeBuildInputs = [
@ -42,7 +44,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohappyeyeballs
async-interrupt
chacha20poly1305-reuseable
cryptography
noiseprotocol
protobuf
zeroconf
@ -56,6 +60,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# https://github.com/esphome/aioesphomeapi/issues/837
"test_reconnect_logic_stop_callback"
];
pythonImportsCheck = [
"aioesphomeapi"
];

View file

@ -3,19 +3,23 @@
, aresponses
, buildPythonPackage
, certifi
, ciso8601
, fetchFromGitHub
, frozenlist
, mashumaro
, poetry-core
, pydantic
, pyjwt
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pytest-cov
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "aionotion";
version = "2023.12.0";
version = "2024.02.2";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -24,7 +28,7 @@ buildPythonPackage rec {
owner = "bachya";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-F9Mv8c+QEd+Vi5pdNDAFzRnYoNKZSAN5qbeX7yG6kIk=";
hash = "sha256-xehHOB4iUMT1kKEK4jQzaj7hH9fmiY7mZxGC3CLnpAs=";
};
nativeBuildInputs = [
@ -34,7 +38,11 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
certifi
pydantic
ciso8601
frozenlist
mashumaro
pyjwt
yarl
];
__darwinAllowLocalNetworking = true;

View file

@ -4,11 +4,12 @@
, flit-core
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "aiosqlite";
version = "0.19.0";
version = "0.20.0";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -17,13 +18,17 @@ buildPythonPackage rec {
owner = "omnilib";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dm7uqG59FP40hcQt+R7qfQiD8P42AYZ2WcH1RoEC5wQ=";
hash = "sha256-JQ9iNxK7FvBhPyr825d+8P5ZYFztDIX3gOwp4FPfyU4=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];

View file

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "axis";
version = "48";
version = "50";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Kane610";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-/Iz1F40Y00bgJUvNrkPGyA8Kkch92Kijeg8TQ8mostM=";
hash = "sha256-Zu8hT6t7ZxlgXQKb2o20FpB15n9y/+n1qMctzcRP8F8=";
};
propagatedBuildInputs = [

View file

@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "bellows";
version = "0.38.0";
version = "0.38.1";
pyproject = true;
disabled = pythonOlder "3.8";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "bellows";
rev = "refs/tags/${version}";
hash = "sha256-7aqzhujTn1TMYBA6+79Ok76yv8hXszuuZ7TjhJ6zbQw=";
hash = "sha256-oxPzjDb+FdHeHsgeGKH3SVvKb0vCB9dIhT7lGzhDcBw=";
};
postPatch = ''

View file

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "bleak-esphome";
version = "0.4.1";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.10";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "bluetooth-devices";
repo = "bleak-esphome";
rev = "refs/tags/v${version}";
hash = "sha256-cLjQg54DL17VtM/NFOQUE0dJThz5EhjipW2t9yhAMQ0=";
hash = "sha256-zz7vh+UIahHtb6ZjR/eRrS9RGur2klqbgKoeJpMrH/k=";
};
postPatch = ''
@ -55,7 +55,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Bleak backend of ESPHome";
homepage = "https://github.com/bluetooth-devices/bleak-esphome";
changelog = "https://github.com/bluetooth-devices/bleak-esphome/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/bluetooth-devices/bleak-esphome/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};

View file

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.6.3";
version = "0.6.4";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "lidatong";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-UVYLyRVLRdt38obSLkSsQdroO95lwpwzerw+gYBIJ7w=";
hash = "sha256-izNDvljUWw60joi5WfCfoqL5SDM8Jz5Pz+lI/RP35n8=";
};
postPatch = ''

View file

@ -1,26 +1,33 @@
{ lib
, buildPythonPackage
, dateparser
, fetchFromGitHub
, georss-client
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "georss-ign-sismologia-client";
version = "0.6";
format = "setuptools";
version = "0.8";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-georss-ign-sismologia-client";
rev = "refs/tags/v${version}";
hash = "sha256-OLX6Megl5l8KDnd/G16QJ/wQn5AQc2cZ+LCbjuHFbwo=";
hash = "sha256-geIxF4GumxRoetJ6mIZCzI3pAvWjJJoY66aQYd2Mzik=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
dateparser
georss-client
];

View file

@ -4,22 +4,27 @@
, georss-client
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "georss-qld-bushfire-alert-client";
version = "0.6";
format = "setuptools";
version = "0.7";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "exxamalte";
repo = "python-georss-qld-bushfire-alert-client";
rev = "v${version}";
hash = "sha256-7KVR0hdLwyCj7MYJoRvQ6wTeJQAmCUarYxJXEFaN8Pc=";
rev = "refs/tags/v${version}";
hash = "sha256-ajCw1m7Qm1kZE/hOsBzFXPWAxl/pFD8pOOQo6qvachE=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
georss-client
];
@ -35,6 +40,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python library for accessing Queensland Bushfire Alert feed";
homepage = "https://github.com/exxamalte/python-georss-qld-bushfire-alert-client";
changelog = "https://github.com/exxamalte/python-georss-qld-bushfire-alert-client/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};

View file

@ -21,7 +21,7 @@
buildPythonPackage rec {
pname = "holidays";
version = "0.43";
version = "0.44";
pyproject = true;
disabled = pythonOlder "3.8";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "vacanza";
repo = "python-holidays";
rev = "refs/tags/v${version}";
hash = "sha256-8Qm8hzGVkaYLwqUcqUxcY4iDR1jrhnSoBS8E2Wewb+U=";
hash = "sha256-RwM4RtFIUSaM/e4kiHOMg97lZ4VknB1pOqGRuIe2ns8=";
};
nativeBuildInputs = [

View file

@ -6,40 +6,32 @@
, tzdata
, pyparsing
, pydantic
, pytest-asyncio
, pytest-benchmark
, pytest-golden
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, python-dateutil
, pyyaml
, setuptools
, syrupy
}:
buildPythonPackage rec {
pname = "ical";
version = "6.1.1";
version = "7.0.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "allenporter";
repo = pname;
repo = "ical";
rev = "refs/tags/${version}";
hash = "sha256-pFmJYXIhc9jhpc9ZjSNaol5h5Jb8ZvxuQsQL/2Rjryc=";
hash = "sha256-S/6zyUFXSWcnnLNSwz1smovSyodhKeRVbT9lj7+KLWo=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
pythonRelaxDeps = [
"tzdata"
];
propagatedBuildInputs = [
python-dateutil
tzdata
@ -50,11 +42,9 @@ buildPythonPackage rec {
nativeCheckInputs = [
emoji
freezegun
pytest-asyncio
pytest-benchmark
pytest-golden
pytestCheckHook
pyyaml
syrupy
];
pythonImportsCheck = [

View file

@ -4,32 +4,39 @@
, fetchPypi
, pythonOlder
, protobuf
, requests
, setuptools
, wheel
, zeroconf
}:
buildPythonPackage rec {
pname = "pychromecast";
version = "13.1.0";
format = "setuptools";
version = "14.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "PyChromecast";
inherit version;
hash = "sha256-COYai1S9IRnTyasewBNtPYVjqpfgo7V4QViLm+YMJnY=";
hash = "sha256-3E+LBS52CpeNqbJWi3kCDLea9gigJkZfB1RM/+Q5c88=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "protobuf>=3.19.1,<4" "protobuf>=3.19.1"
substituteInPlace pyproject.toml \
--replace-fail "setuptools~=65.6" "setuptools" \
--replace-fail "wheel~=0.37.1" "wheel" \
--replace-fail "protobuf>=4.25.1" "protobuf"
'';
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
casttube
protobuf
requests
zeroconf
];

View file

@ -1,10 +1,10 @@
{ lib
, authlib
, buildPythonPackage
, dataclasses-json
, fetchFromGitHub
, httpx
, marshmallow
, mashumaro
, orjson
, pytest-httpx
, poetry-core
, pytestCheckHook
@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "pydiscovergy";
version = "2.0.5";
version = "3.0.0";
format = "pyproject";
disabled = pythonOlder "3.10";
@ -24,24 +24,24 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jpbede";
repo = "pydiscovergy";
rev = "refs/tags/${version}";
hash = "sha256-u2G+o/vhPri7CPSnekC8rUo/AvuvePpG51MR+FdH2XA=";
rev = "refs/tags/v${version}";
hash = "sha256-ArcH/4ZyOtIGmoXArU+oEd357trJnS9umlN9B+U0dBI=";
};
postPatch = ''
sed -i '/addopts =/d' pyproject.toml
'';
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"pytz"
];
propagatedBuildInputs = [
authlib
dataclasses-json
httpx
marshmallow
mashumaro
orjson
pytz
];
@ -58,7 +58,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Async Python 3 library for interacting with the Discovergy API";
homepage = "https://github.com/jpbede/pydiscovergy";
changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/${version}";
changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};

View file

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "pyrfxtrx";
version = "0.30.1";
version = "0.31.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pyRFXtrx";
rev = "refs/tags/${version}";
hash = "sha256-sxxGu1ON5fhUCaONYJdsUFHraTh5NAdXzj7Cai9k5yc=";
hash = "sha256-0t5pPBk8Mzdm6STGtqGMljPjDoW2DTT7x21MEnG512w=";
};
propagatedBuildInputs = [

View file

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "pysmi-lextudio";
version = "1.3.2";
version = "1.3.3";
pyproject = true;
disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "lextudio";
repo = "pysmi";
rev = "refs/tags/v${version}";
hash = "sha256-3ai7Fb97B2HpG6IllEx/PNbJ3KQjwoN9Mn+jprMz+XY=";
hash = "sha256-GApjr7KUd7KkdxsbLTzFNdWWol7b/8udrY9q/lls2ro=";
};
nativeBuildInputs = [
@ -42,7 +42,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "SNMP MIB parser";
homepage = "https://github.com/lextudio/pysmi";
changelog = "https://github.com/lextudio/pysmi/blob/${version}/CHANGES.rst";
changelog = "https://github.com/lextudio/pysmi/blob/v${version}/CHANGES.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};

View file

@ -7,7 +7,6 @@
# dependencies
, pyasn1
, pyasyncore
, pysmi-lextudio
, pysnmpcrypto
@ -18,14 +17,14 @@
buildPythonPackage rec {
pname = "pysnmp-lextudio";
version = "5.0.33";
version = "6.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "lextudio";
repo = "pysnmp";
rev = "v${version}";
hash = "sha256-IXYpR7JnuHmcjtdCs1C+rPHS9IZ93MN/Zuw4Pu1l/4A=";
hash = "sha256-Mbzpe2wVoW4m7hnfsdcSO/8uOgWl5f1sLLqvdpQP2gU=";
};
nativeBuildInputs = [
@ -34,7 +33,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
pyasn1
pyasyncore
pysmi-lextudio
pysnmpcrypto
];
@ -50,11 +48,15 @@ buildPythonPackage rec {
"test_send_notification"
"test_send_trap"
"test_send_v3_inform_notification"
"test_send_v3_inform_sync"
"test_usm_sha_aes128"
"test_v1_get"
"test_v1_next"
"test_v1_set"
"test_v2c_bulk"
# pysnmp.smi.error.MibNotFoundError
"test_send_v3_trap_notification"
"test_addAsn1MibSource"
];
pythonImportsCheck = [

View file

@ -19,7 +19,7 @@
buildPythonPackage rec {
pname = "python-roborock";
version = "0.39.2";
version = "0.40.0";
pyproject = true;
disabled = pythonOlder "3.10";
@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "humbertogontijo";
repo = "python-roborock";
rev = "refs/tags/v${version}";
hash = "sha256-hgd6/3GO1r6Xmgcq3iWVxWzi3VIN8MvV27CxF6tWwgU=";
hash = "sha256-H4xwgulNLs3R1Q5GhvQffpAZ1CWXZUJAja8BskW+YJk=";
};
postPatch = ''

View file

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "pytraccar";
version = "2.1.0";
version = "2.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "ludeeus";
repo = "pytraccar";
rev = "refs/tags/${version}";
hash = "sha256-VsZ18zVIO5ps0GIoVwXBuVe20n6Cz6buItgKlzYyjt4=";
hash = "sha256-WTRqYw66iD4bbb1aWJfBI67+DtE1FE4oiuUKpfVqypE=";
};
nativeBuildInputs = [

View file

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "securetar";
version = "2024.2.0";
version = "2024.2.1";
pyproject = true;
disabled = pythonOlder "3.9";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "pvizeli";
repo = "securetar";
rev = "refs/tags/${version}";
hash = "sha256-rYRbrpXo2oVW8SpddNsKb0FBdscovNUaGXLHy7WBiVU=";
hash = "sha256-D50ceRlK+v5Uo3qBBpVtKwI8zKU/qh1Njn3qeKM4LiY=";
};
nativeBuildInputs = [

View file

@ -13,16 +13,16 @@
buildPythonPackage rec {
pname = "vallox-websocket-api";
version = "4.2.0";
format = "pyproject";
version = "5.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "yozik04";
repo = "vallox_websocket_api";
rev = "refs/tags/${version}";
hash = "sha256-e05MP130okj8j20yMn8a7P6PYZ4PKwCOlAf0ZlUR5aI=";
hash = "sha256-ZYcLoOYwQK1+txiBuCEIDp+tYM3eXFtOSR0iNIrIP0w=";
};
nativeBuildInputs = [

View file

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "wallbox";
version = "0.5.1";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EDEB7/CkrfYSNcSh55Itrj6rThsNKeuj8lHLAY+Qml4=";
hash = "sha256-COZHMkAbTFZKi/b4e6toC4gPj1MPfGN4aBVi6SglrBI=";
};
propagatedBuildInputs = [

View file

@ -43,6 +43,13 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# RuntimeError: no running event loop
"test_mfg_cluster_events"
"test_co2_sensor"
"test_smart_air_sensor"
];
pythonImportsCheck = [
"zhaquirks"
];

View file

@ -1,6 +1,7 @@
{ lib
, aiohttp
, aiosqlite
, aioresponses
, buildPythonPackage
, crccheck
, cryptography
@ -18,7 +19,7 @@
buildPythonPackage rec {
pname = "zigpy";
version = "0.62.3";
version = "0.63.4";
pyproject = true;
disabled = pythonOlder "3.8";
@ -27,7 +28,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "zigpy";
rev = "refs/tags/${version}";
hash = "sha256-LMcyYDUH/jGrDW8sjrT9kHdIWQ20fOOcOJRhUpKMGi8=";
hash = "sha256-0wenUUkhgodsBID+ZT9JRoJeGDTqAChAIpj+9/Q3FMM=";
};
postPatch = ''
@ -51,6 +52,7 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
aioresponses
freezegun
pytest-asyncio
pytest-timeout

View file

@ -2,7 +2,7 @@
# Do not edit!
{
version = "2024.2.5";
version = "2024.3.0";
components = {
"3_day_blinds" = ps: with ps; [
];
@ -19,6 +19,8 @@
"acmeda" = ps: with ps; [
aiopulse
];
"acomax" = ps: with ps; [
];
"actiontec" = ps: with ps; [
];
"adax" = ps: with ps; [
@ -224,6 +226,8 @@
"apprise" = ps: with ps; [
apprise
];
"aprilaire" = ps: with ps; [
]; # missing inputs: pyaprilaire
"aprs" = ps: with ps; [
aprslib
geopy
@ -568,8 +572,7 @@
"brel_home" = ps: with ps; [
];
"bring" = ps: with ps; [
python-bring-api
];
]; # missing inputs: bring-api
"broadlink" = ps: with ps; [
broadlink
];
@ -831,6 +834,7 @@
"decora_wifi" = ps: with ps; [
]; # missing inputs: decora-wifi
"default_config" = ps: with ps; [
aiodhcpwatcher
aiodiscover
aiohttp-cors
aiohttp-fast-url-dispatcher
@ -862,7 +866,6 @@
python-matter-server
pyturbojpeg
pyudev
scapy
securetar
sqlalchemy
webrtc-noise-gain
@ -929,9 +932,9 @@
pydexcom
];
"dhcp" = ps: with ps; [
aiodhcpwatcher
aiodiscover
cached-ipaddress
scapy
];
"diagnostics" = ps: with ps; [
aiohttp-cors
@ -980,7 +983,6 @@
ifaddr
psutil-home-assistant
sqlalchemy
zeroconf
];
"dlna_dms" = ps: with ps; [
aiohttp-cors
@ -991,7 +993,6 @@
ifaddr
psutil-home-assistant
sqlalchemy
zeroconf
];
"dnsip" = ps: with ps; [
aiodns
@ -1080,6 +1081,8 @@
"duotecno" = ps: with ps; [
pyduotecno
];
"duquesne_light" = ps: with ps; [
];
"dwd_weather_warnings" = ps: with ps; [
dwdwfsapi
];
@ -2131,6 +2134,15 @@
];
"hurrican_shutters_wholesale" = ps: with ps; [
];
"husqvarna_automower" = ps: with ps; [
aioautomower
aiohttp-cors
aiohttp-fast-url-dispatcher
aiohttp-zlib-ng
fnv-hash-fast
psutil-home-assistant
sqlalchemy
];
"huum" = ps: with ps; [
huum
];
@ -2418,7 +2430,6 @@
"joaoapps_join" = ps: with ps; [
]; # missing inputs: python-join-api
"juicenet" = ps: with ps; [
python-juicenet
];
"justnimbus" = ps: with ps; [
justnimbus
@ -2557,6 +2568,8 @@
krakenex
pykrakenapi
];
"krispol" = ps: with ps; [
];
"kulersky" = ps: with ps; [
pykulersky
];
@ -2854,6 +2867,8 @@
psutil-home-assistant
sqlalchemy
];
"madeco" = ps: with ps; [
];
"mailbox" = ps: with ps; [
aiohttp-cors
aiohttp-fast-url-dispatcher
@ -3025,6 +3040,14 @@
];
"mfi" = ps: with ps; [
]; # missing inputs: mficlient
"microbees" = ps: with ps; [
aiohttp-cors
aiohttp-fast-url-dispatcher
aiohttp-zlib-ng
fnv-hash-fast
psutil-home-assistant
sqlalchemy
]; # missing inputs: microBeesPy
"microsoft" = ps: with ps; [
]; # missing inputs: pycsspeechtts
"microsoft_face" = ps: with ps; [
@ -3396,10 +3419,10 @@
aiohttp-cors
aiohttp-fast-url-dispatcher
aiohttp-zlib-ng
aiooui
fnv-hash-fast
getmac
ifaddr
mac-vendor-lookup
netmap
psutil-home-assistant
sqlalchemy
@ -4263,6 +4286,8 @@
"saj" = ps: with ps; [
pysaj
];
"samsam" = ps: with ps; [
];
"samsungtv" = ps: with ps; [
aiohttp-cors
aiohttp-fast-url-dispatcher
@ -4276,7 +4301,6 @@
samsungtvws
sqlalchemy
wakeonlan
zeroconf
]
++ samsungctl.optional-dependencies.websocket
++ samsungtvws.optional-dependencies.async
@ -4727,7 +4751,6 @@
ifaddr
psutil-home-assistant
sqlalchemy
zeroconf
];
"starline" = ps: with ps; [
starline
@ -4899,6 +4922,7 @@
];
"systemmonitor" = ps: with ps; [
psutil
psutil-home-assistant
];
"tado" = ps: with ps; [
python-tado
@ -5330,7 +5354,6 @@
ifaddr
psutil-home-assistant
sqlalchemy
zeroconf
];
"uprise_smart_shades" = ps: with ps; [
];
@ -5486,6 +5509,8 @@
"weatherflow" = ps: with ps; [
pyweatherflowudp
];
"weatherflow_cloud" = ps: with ps; [
]; # missing inputs: weatherflow4py
"weatherkit" = ps: with ps; [
apple-weatherkit
];
@ -5494,6 +5519,8 @@
aiohttp-fast-url-dispatcher
aiohttp-zlib-ng
];
"webmin" = ps: with ps; [
]; # missing inputs: webmin-xmlrpc
"webostv" = ps: with ps; [
aiowebostv
];
@ -5555,7 +5582,7 @@
wled
];
"wolflink" = ps: with ps; [
]; # missing inputs: wolf-smartset
]; # missing inputs: wolf-comm
"workday" = ps: with ps; [
holidays
];
@ -5693,7 +5720,6 @@
ifaddr
psutil-home-assistant
sqlalchemy
zeroconf
];
"yandex_transport" = ps: with ps; [
aioymaps
@ -5713,7 +5739,6 @@
psutil-home-assistant
sqlalchemy
yeelight
zeroconf
];
"yeelightsunflower" = ps: with ps; [
]; # missing inputs: yeelightsunflower
@ -5797,6 +5822,8 @@
]; # missing inputs: ziggo-mediabox-xl
"zodiac" = ps: with ps; [
];
"zondergas" = ps: with ps; [
];
"zone" = ps: with ps; [
];
"zoneminder" = ps: with ps; [
@ -5874,6 +5901,7 @@
"arcam_fmj"
"aseko_pool_live"
"assist_pipeline"
"asterisk_mbox"
"asuswrt"
"atag"
"august"
@ -5905,7 +5933,6 @@
"bond"
"bosch_shc"
"braviatv"
"bring"
"broadlink"
"brother"
"brottsplatskartan"
@ -6124,6 +6151,7 @@
"huisbaasje"
"humidifier"
"hunterdouglas_powerview"
"husqvarna_automower"
"huum"
"hvv_departures"
"hydrawise"
@ -6570,6 +6598,7 @@
"vallox"
"valve"
"velbus"
"velux"
"venstar"
"vera"
"verisure"

View file

@ -3,7 +3,6 @@
, callPackage
, fetchFromGitHub
, fetchPypi
, fetchpatch
, python311
, substituteAll
, ffmpeg-headless
@ -31,15 +30,6 @@ let
# Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
(self: super: {
aemet-opendata = super.aemet-opendata.overridePythonAttrs (oldAttrs: rec {
version = "0.4.7";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo;
rev = "refs/tags/${version}";
hash = "sha256-kmU2HtNyYhfwWQv6asOtDpLZ6+O+eEICzBNLxUhAwaY=";
};
});
aiogithubapi = super.aiogithubapi.overridePythonAttrs (oldAttrs: rec {
version = "22.10.1";
src = fetchFromGitHub {
@ -55,23 +45,6 @@ let
];
});
aionotion = super.aionotion.overridePythonAttrs (oldAttrs: rec {
version = "2023.05.5";
src = fetchFromGitHub {
owner = "bachya";
repo = "aionotion";
rev = "refs/tags/${version}";
hash = "sha256-/2sF8m5R8YXkP89bi5zR3h13r5LrFOl1OsixAcX0D4o=";
};
patches = [
(fetchpatch {
# clean up build dependencies; https://github.com/bachya/aionotion/commit/53c7285110d12810f9b43284295f71d052a81b83
url = "https://github.com/bachya/aionotion/commit/53c7285110d12810f9b43284295f71d052a81b83.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];
});
aiopurpleair = super.aiopurpleair.overridePythonAttrs (oldAttrs: rec {
version = "2022.12.1";
src = fetchFromGitHub {
@ -87,16 +60,6 @@ let
'';
});
aiopvapi = super.aiopvapi.overridePythonAttrs (oldAttrs: rec {
version = "2.0.4";
src = fetchFromGitHub {
owner = "sander76";
repo = "aio-powerview-api";
rev = "refs/tags/v${version}";
hash = "sha256-cghfNi5T343/7GxNLDrE0iAewMlRMycQTP7SvDVpU2M=";
};
});
aioskybell = super.aioskybell.overridePythonAttrs (oldAttrs: rec {
version = "22.7.0";
src = fetchFromGitHub {
@ -149,15 +112,6 @@ let
];
});
brother = super.brother.overridePythonAttrs (oldAttrs: rec {
version = "3.0.0";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo;
rev = "refs/tags/${version}";
hash = "sha256-rRzcWT9DcNTBUYxyYYC7WORBbrkgj0toCp2e8ADUN5s=";
};
});
debugpy = super.debugpy.overridePythonAttrs (oldAttrs: {
# tests are deadlocking too often
# https://github.com/NixOS/nixpkgs/issues/262000
@ -348,16 +302,6 @@ let
};
});
python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec {
version = "8.0.1";
src = fetchFromGitHub {
owner = "un33k";
repo = "python-slugify";
rev = "refs/tags/v${version}";
hash = "sha256-MJac63XjgWdUQdyyEm8O7gAGVszmHxZzRF4frJtR0BU=";
};
});
pytradfri = super.pytradfri.overridePythonAttrs (oldAttrs: rec {
version = "9.0.1";
src = fetchFromGitHub {
@ -398,16 +342,6 @@ let
};
});
wyoming = super.wyoming.overridePythonAttrs (oldAttrs: rec {
version = "1.5.2";
src = fetchFromGitHub {
owner = "rhasspy";
repo = "wyoming";
rev = "refs/tags/${version}";
hash = "sha256-2bc5coKL5KlTeL9fdghPmRF66NXfimHOKGtE2yPXgrA=";
};
});
xbox-webapi = super.xbox-webapi.overridePythonAttrs (oldAttrs: rec {
version = "2.0.11";
src = fetchFromGitHub {
@ -462,7 +396,7 @@ let
extraBuildInputs = extraPackages python.pkgs;
# Don't forget to run parse-requirements.py after updating
hassVersion = "2024.2.5";
hassVersion = "2024.3.0";
in python.pkgs.buildPythonApplication rec {
pname = "homeassistant";
@ -480,13 +414,13 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = "refs/tags/${version}";
hash = "sha256-RRoxWNcubpxzmExzrifRKhgNm0IM5OuNZYHz6tp9zm8=";
hash = "sha256-/DCE2IHdS+oImpzwIaFgXotAsoiPPbe3X3HG7RXbv9g=";
};
# Secondary source is pypi sdist for translations
sdist = fetchPypi {
inherit pname version;
hash = "sha256-qhUfOMSM4FKUQ9LdeoHLLrVm5cWFrlTER02s+tLVAMU=";
hash = "sha256-G9M1WV+s4zu9BY10RWmJ71ghafAOHMjnCR6BOlggguM=";
};
nativeBuildInputs = with python.pkgs; [
@ -496,7 +430,10 @@ in python.pkgs.buildPythonApplication rec {
pythonRelaxDeps = [
"attrs"
"bcrypt"
"ciso8601"
"cryptography"
"httpx"
"orjson"
"pyopenssl"
"typing-extensions"
@ -534,7 +471,7 @@ in python.pkgs.buildPythonApplication rec {
aiohttp-fast-url-dispatcher
aiohttp-zlib-ng
astral
async-timeout
async-interrupt
atomicwrites-homeassistant
attrs
awesomeversion
@ -555,7 +492,9 @@ in python.pkgs.buildPythonApplication rec {
python-slugify
pyyaml
requests
typing-extensions
ulid-transform
urllib3
voluptuous
voluptuous-serialize
yarl
@ -563,7 +502,7 @@ in python.pkgs.buildPythonApplication rec {
pyotp
pyqrcode
# Implicit dependency via homeassistant/requirements.py
setuptools
packaging
];
makeWrapperArgs = lib.optional skipPip "--add-flags --skip-pip";
@ -593,7 +532,9 @@ in python.pkgs.buildPythonApplication rec {
] ++ lib.concatMap (component: getPackages component python.pkgs) [
# some components are needed even if tests in tests/components are disabled
"default_config"
"debugpy"
"hue"
"sentry"
];
pytestFlagsArray = [

View file

@ -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 = "20240207.1";
version = "20240306.0";
format = "wheel";
src = fetchPypi {
@ -12,7 +12,7 @@ buildPythonPackage rec {
pname = "home_assistant_frontend";
dist = "py3";
python = "py3";
hash = "sha256-uGBVha7nJvYua1rZXlIJGhUzEm5wSrhazrOBUi3omJk=";
hash = "sha256-eDuJC23PJbjaKC9TBCLg5ML3XR6admKrT9RVgfUQCw8=";
};
# there is nothing to strip in this package

View file

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "home-assistant-intents";
version = "2024.2.2";
version = "2024.2.28";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-Tb9ZZvs5Wyzm2TS5INUSua4Y3/2H+kHEhjpfYWJi+d0=";
hash = "sha256-EmnaYc+L1PHOv6M7odYDl+UBZkLJRtP86xPoqdbuOqU=";
};
postPatch = ''

View file

@ -315,6 +315,6 @@ def main() -> None:
if __name__ == "__main__":
run_sync(["pyright", __file__])
run_sync(["ruff", "--ignore=E501", __file__])
run_sync(["ruff", "check", "--ignore=E501", __file__])
run_sync(["isort", __file__])
main()

View file

@ -1,8 +1,8 @@
diff --git a/homeassistant/components/ffmpeg/__init__.py b/homeassistant/components/ffmpeg/__init__.py
index a98766c78c..1c47bb1f80 100644
index 4ab4ee32a0..0f04f037f6 100644
--- a/homeassistant/components/ffmpeg/__init__.py
+++ b/homeassistant/components/ffmpeg/__init__.py
@@ -41,7 +41,7 @@ CONF_FFMPEG_BIN = "ffmpeg_bin"
@@ -46,7 +46,7 @@ CONF_FFMPEG_BIN = "ffmpeg_bin"
CONF_EXTRA_ARGUMENTS = "extra_arguments"
CONF_OUTPUT = "output"
@ -70,15 +70,15 @@ index 6eec115d6f..c55b4fb26c 100644
hass.bus.async_fire(EVENT_HOMEASSISTANT_START)
diff --git a/tests/components/ffmpeg/test_init.py b/tests/components/ffmpeg/test_init.py
index 0c6ce300d0..ff74a5d7f7 100644
index 452a818859..41ba776436 100644
--- a/tests/components/ffmpeg/test_init.py
+++ b/tests/components/ffmpeg/test_init.py
@@ -91,7 +91,7 @@ class TestFFmpegSetup:
@@ -81,7 +81,7 @@ def test_setup_component():
with assert_setup_component(1):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
setup_component(hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
- assert hass.data[ffmpeg.DATA_FFMPEG].binary == "ffmpeg"
+ assert hass.data[ffmpeg.DATA_FFMPEG].binary == "@ffmpeg@"
hass.stop()
- assert self.hass.data[ffmpeg.DATA_FFMPEG].binary == "ffmpeg"
+ assert self.hass.data[ffmpeg.DATA_FFMPEG].binary == "@ffmpeg@"
def test_setup_component_test_service(self):
"""Set up ffmpeg component test services."""

View file

@ -8,7 +8,7 @@
buildPythonPackage rec {
pname = "homeassistant-stubs";
version = "2024.2.5";
version = "2024.3.0";
format = "pyproject";
disabled = python.version != home-assistant.python.version;
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "KapJI";
repo = "homeassistant-stubs";
rev = "refs/tags/${version}";
hash = "sha256-izXAm9lK5mhjc8vVTRflDdxYQesqnkBJtFonOHoht9c=";
hash = "sha256-4K/JrmNcvRzso9NgFuh3fThcEQS+Ydk4II6xrWv2KdM=";
};
nativeBuildInputs = [

View file

@ -82,6 +82,11 @@ let
# aioserial mock produces wrong state
"--deselect tests/components/modem_callerid/test_init.py::test_setup_entry"
];
velux = [
# uses unmocked sockets
"--deselect tests/components/velux/test_config_flow.py::test_user_success"
"--deselect tests/components/velux/test_config_flow.py::test_import_valid_config"
];
};
in lib.listToAttrs (map (component: lib.nameValuePair component (
home-assistant.overridePythonAttrs (old: {

View file

@ -258,6 +258,6 @@ async def main():
if __name__ == "__main__":
run_sync(["pyright", __file__])
run_sync(["ruff", "--ignore=E501", __file__])
run_sync(["ruff", "check", "--ignore=E501", __file__])
run_sync(["isort", __file__])
asyncio.run(main())

View file

@ -193,6 +193,8 @@ self: super: with self; {
aiocurrencylayer = callPackage ../development/python-modules/aiocurrencylayer { };
aiodhcpwatcher = callPackage ../development/python-modules/aiodhcpwatcher { };
aiodiscover = callPackage ../development/python-modules/aiodiscover { };
aiodns = callPackage ../development/python-modules/aiodns { };