Merge pull request #214070 from NixOS/home-assistant

home-assistant: 2023.1.7 -> 2023.2.0
This commit is contained in:
Martin Weinelt 2023-02-02 03:42:27 +00:00 committed by GitHub
commit 006c3bd4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 620 additions and 280 deletions

View File

@ -438,11 +438,13 @@ in {
"aranet"
"bluemaestro"
"bluetooth"
"bluetooth_adapters"
"bluetooth_le_tracker"
"bluetooth_tracker"
"bthome"
"default_config"
"eq3btsmart"
"eufylife_ble"
"esphome"
"fjaraskupan"
"govee_ble"
@ -452,8 +454,10 @@ in {
"led_ble"
"melnor"
"moat"
"mopeka"
"oralb"
"qingping"
"ruuvi_gateway"
"ruuvitag_ble"
"sensirion_ble"
"sensorpro"

View File

@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "aioaladdinconnect";
version = "0.1.54";
version = "0.1.55";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "AIOAladdinConnect";
inherit version;
hash = "sha256-WRHQYWoQQ8EoKOqhIS0PqIWisO4xjUvRJHpomD8f5wA=";
hash = "sha256-Lyhv6JF+KuCiGz05EbXMEeXzVCI7ACsJmnEuAtDghYo=";
};
propagatedBuildInputs = [

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "aiohue";
version = "4.5.0";
version = "4.6.1";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -18,8 +18,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = version;
hash = "sha256-Lcs+Ieh5TEUE+sHqFAZr9rsAZMsI9t2/w87r36IUa1A=";
rev = "refs/tags/${version}";
hash = "sha256-ATM4s2W1Gw98TysfqHVA/McerZStHaUK5eMrSU9+uOI=";
};
propagatedBuildInputs = [
@ -45,6 +45,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python package to talk to Philips Hue";
homepage = "https://github.com/home-assistant-libs/aiohue";
changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};

View File

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "aiomusiccast";
version = "0.14.6";
version = "0.14.7";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "vigonotion";
repo = "aiomusiccast";
rev = "refs/tags/${version}";
hash = "sha256-eQBVenB/WIqksohWtCU/3o3TGWMavPjJahlg0yus4aE=";
hash = "sha256-6fHTZ5zFiXuyFtZj9cNH5ejLbzx/1cEBUy+fs+Q6O4Y=";
};
postPatch = ''

View File

@ -4,18 +4,17 @@
, backports-zoneinfo
, buildPythonPackage
, fetchFromGitHub
, holidays
, poetry-core
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, tzdata
, python-dotenv
}:
buildPythonPackage rec {
pname = "aiopvpc";
version = "3.0.0";
version = "4.0.1";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -23,18 +22,21 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "azogue";
repo = pname;
rev = "v${version}";
sha256 = "sha256-eTCQddoZIaCs7iKGNBC8aSq6ek4vwYXgIXx35UlME/k=";
rev = "refs/tags/v${version}";
hash = "sha256-E5z74/5VuFuOyAfeT4PQlHUNOiVT4sPgOdxoAIIymxU=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace \
" --cov --cov-report term --cov-report html" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
holidays
tzdata
async-timeout
] ++ lib.optionals (pythonOlder "3.9") [
backports-zoneinfo
@ -44,18 +46,9 @@ buildPythonPackage rec {
pytest-asyncio
pytest-timeout
pytestCheckHook
python-dotenv
];
disabledTests = [
# Failures seem related to changes in holidays-0.13, https://github.com/azogue/aiopvpc/issues/44
"test_number_of_national_holidays"
];
postPatch = ''
substituteInPlace pyproject.toml --replace \
" --cov --cov-report term --cov-report html" ""
'';
pythonImportsCheck = [
"aiopvpc"
];
@ -63,6 +56,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module to download Spanish electricity hourly prices (PVPC)";
homepage = "https://github.com/azogue/aiopvpc";
changelog = "https://github.com/azogue/aiopvpc/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, bluetooth-data-tools
, httpx
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aioruuvigateway";
version = "0.0.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "akx";
repo = "aioruuvigateway";
rev = "refs/tags/v${version}";
hash = "sha256-oT5Tlmi9bevOkcVZqg/xvCckIpN7TjbPVQefo9z1RDM=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
bluetooth-data-tools
httpx
];
nativeCheckInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
meta = with lib; {
description = "An asyncio-native library for requesting data from a Ruuvi Gateway";
homepage = "https://github.com/akx/aioruuvigateway";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, prettytable
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiosomecomfort";
version = "0.0.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "mkmer";
repo = "AIOSomecomfort";
rev = "refs/tags/${version}";
hash = "sha256-Qw0KR934GS7AuT3nRYaunypt091fZLRioVbNOp9JesY=";
};
postPatch = ''
# https://github.com/mkmer/AIOSomecomfort/issues/1
mv aiosomecomfort AIOSomecomfort
'';
propagatedBuildInputs = [
aiohttp
prettytable
];
checkInputs = [
mock
pytestCheckHook
];
# SyntaxError in test.py
doCheck = false;
meta = {
description = "AsyicIO client for US models of Honeywell Thermostats";
homepage = "https://github.com/mkmer/AIOSomecomfort";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "aiounifi";
version = "43";
version = "44";
format = "setuptools";
disabled = pythonOlder "3.9";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Kane610";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-qpFQdNlw6voqccoJwPsnmbU5DtAC6zwtouUeysZ8/0M=";
hash = "sha256-SRI7c0cmrNSTOEyRbs6JGEg5O9tws+Dwn0G8HUqWEqc=";
};
propagatedBuildInputs = [

View File

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "async-upnp-client";
version = "0.33.0";
version = "0.33.1";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "StevenLooman";
repo = "async_upnp_client";
rev = "refs/tags/${version}";
hash = "sha256-I7C2ho+pmowerJFK82wYcqEOhRV3KZ5j5IBVCKjhllM=";
hash = "sha256-gXDuStgCBH6YW3SsAjEvQq7l+Vf8+Z8sle1TnLRtNwo=";
};
propagatedBuildInputs = [

View File

@ -1,26 +1,31 @@
{ lib
, async-timeout
, attrs
, buildPythonPackage
, fetchFromGitHub
, httpx
, orjson
, packaging
, xmltodict
}:
buildPythonPackage rec {
pname = "axis";
version = "44";
version = "46";
format = "setuptools";
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "v${version}";
sha256 = "sha256-GC8GiDP/QHU+8swe60VFPRx8kSMMHuXjIPEKCja8HPE=";
hash = "sha256-alhezwRPag+6JoC4zbusWdxFyZQ2dZl04Uj1PkiN4qo=";
};
propagatedBuildInputs = [
async-timeout
attrs
httpx
orjson
packaging
xmltodict
];
@ -32,6 +37,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python library for communicating with devices from Axis Communications";
homepage = "https://github.com/Kane610/axis";
changelog = "https://github.com/Kane610/axis/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};

View File

@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "bellows";
version = "0.34.6";
version = "0.34.7";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "bellows";
rev = "refs/tags/${version}";
hash = "sha256-J6PUVdIs9adRdFbw9yzu1Y9jU9Ge0hGxueXbE1b03og=";
hash = "sha256-+4OWiIRbCLvZWt5zn2djW20PrZJK4c5KOcz4Owbkozg=";
};
propagatedBuildInputs = [

View File

@ -15,16 +15,16 @@
buildPythonPackage rec {
pname = "devolo-plc-api";
version = "0.9.0";
format = "setuptools";
version = "1.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "2Fake";
repo = "devolo_plc_api";
rev = "v${version}";
sha256 = "sha256-FBcDEEWgfV+OgHriSOZKWZPt0O89nDe2CsY3oqX/6zo=";
rev = "refs/tags/v${version}";
hash = "sha256-xM7g6q18A+qmOhQeey4uxs6ow6Hf5YKDdbpXwYr2RXo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -46,15 +46,14 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [
"devolo_plc_api"
];
meta = with lib; {
description = "Python module to interact with Devolo PLC devices";
description = "Module to interact with Devolo PLC devices";
homepage = "https://github.com/2Fake/devolo_plc_api";
changelog = "https://github.com/2Fake/devolo_plc_api/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};

View File

@ -15,7 +15,7 @@
buildPythonPackage rec {
pname = "env-canada";
version = "0.5.26";
version = "0.5.27";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "michaeldavie";
repo = "env_canada";
rev = "refs/tags/v${version}";
sha256 = "sha256-k8GaW88PhHgHuG4UU4ha6N8iRkZRlIKxAHrWt1Yq3G0=";
hash = "sha256-tZp3r0LALo32vmbeBOjHHg6sexpP+iq9WGRSob13mmE=";
};
propagatedBuildInputs = [

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, aiohttp
}:
buildPythonPackage rec {
pname = "esphome-dashboard-api";
version = "1.2.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "esphome";
repo = "dashboard-api";
rev = "refs/tags/${version}";
hash = "sha256-RFfS0xzRXoM6ETXmviiMPxffPzspjTqpkvHOlTJXN9g=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
doCheck = false; # no tests
pythonImportsCheck = [
"esphome_dashboard_api"
];
meta = with lib; {
description = "API to interact with ESPHome Dashboard";
homepage = "https://github.com/esphome/dashboard-api";
changelog = "https://github.com/esphome/dashboard-api/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "google-api-python-client";
version = "2.70.0";
version = "2.75.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Ji3glNWjDTN/WeZlgQGf7UW2mMB4OXrEjdMjwJaCNuc=";
sha256 = "sha256-DxCaK3HxTJp7SCMf7PzdOrlYYeqav1TwYKxFwgT63D0=";
};
propagatedBuildInputs = [

View File

@ -6,7 +6,7 @@
buildPythonPackage rec {
pname = "home-assistant-chip-clusters";
version = "2022.12.0";
version = "2023.1.0";
format = "wheel";
src = fetchPypi {
@ -14,7 +14,7 @@ buildPythonPackage rec {
pname = "home_assistant_chip_clusters";
dist = "py3";
python = "py3";
hash = "sha256-zo54lRNyKXCCUUoYIiZmHZMqISim9QKEOnFbM/iBRqE=";
hash = "sha256-2UcDu2b3DtijAOUt+eazleoKxEhAgsU3MY/OoEBpLNg=";
};
propagatedBuildInputs = [

View File

@ -24,7 +24,7 @@
buildPythonPackage rec {
pname = "home-assistant-chip-core";
version = "2022.12.0";
version = "2023.1.0";
format = "wheel";
disabled = pythonOlder "3.7";
@ -33,11 +33,11 @@ buildPythonPackage rec {
system = {
"aarch64-linux" = {
name = "aarch64";
hash = "sha256-oNqrvbzXeXpMG3v9RK6kppONH4n7xLVaJCEFXxVj2jE=";
hash = "sha256-hNaGE2s/oFFAVCWu50IeeaFTlOSByJJAKvBgX1iDrVE=";
};
"x86_64-linux" = {
name = "x86_64";
hash = "sha256-S5n1MUig8ZDSLgWeVmu+5qLZ4kfHQUC9qZcVfM8rPvw=";
hash = "sha256-zXxbDGfyFUXuEnaH4a8R4LXH0gfbMCkKPBJJGp77xHM=";
};
}.${stdenv.system} or (throw "Unsupported system");
in fetchPypi {

View File

@ -6,13 +6,15 @@
buildPythonPackage rec {
pname = "ndms2-client";
version = "0.1.1";
version = "0.1.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "foxel";
repo = "python_ndms2_client";
rev = version;
sha256 = "1sc39d10hm1y8xf3gdqzq1akrx94k590l106242j9bvfqyr8lrk9";
hash = "sha256-cM36xNLymg5Xph3bvbUGdAEmMABJ9y3/w/U8re6ZfB4=";
};
nativeCheckInputs = [

View File

@ -1,32 +0,0 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyalmond";
version = "0.0.3";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stanford-oval";
repo = pname;
rev = "v${version}";
sha256 = "0d1w83lr7k2wxcs846iz4mjyqn1ximnw6155kgl515v10fqyrhgk";
};
propagatedBuildInputs = [ aiohttp ];
# Tests require a running Almond instance
doCheck = false;
pythonImportsCheck = [ "pyalmond" ];
meta = with lib; {
description = "Python client for the Almond API";
homepage = "https://github.com/stanford-oval/pyalmond";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -8,7 +8,7 @@
buildPythonPackage rec {
pname = "pybravia";
version = "0.2.5";
version = "0.3.1";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "Drafteed";
repo = pname;
rev = "v${version}";
hash = "sha256-QWn5VdZlbxm2/ZvsQWlKuVPPBcqFkyt75Odh9Mf9Bqk=";
hash = "sha256-aY+G4e2uq2yWUkJ9CXnOhc5S57kkMB36N/x+iQDCivo=";
};
nativeBuildInputs = [

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "pyisy";
version = "3.1.9";
version = "3.1.11";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "automicus";
repo = "PyISY";
rev = "refs/tags/v${version}";
hash = "sha256-X/flikSo0PKHz4iBw4AjhCwpTtt2P+1jrlTAanYgO1A=";
hash = "sha256-RYC0mfskDcCU9O2pSKRL9ulPUaJQO9UKp7WANXZWJ60=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;

View File

@ -10,6 +10,8 @@
, pyserial
, pyserial-asyncio
, pytest-asyncio
, pytest-rerunfailures
, pytest-xdist
, pytestCheckHook
, redis
, sqlalchemy
@ -19,13 +21,14 @@
buildPythonPackage rec {
pname = "pymodbus";
version = "3.0.2";
version = "3.1.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "riptideio";
owner = "pymodbus-dev";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-7zuFKJuKc+J4g7qoK22xed8dmXJatQbQXz4aKAOcvN8=";
hash = "sha256-kae/TADu23NnCrXkJ/dkDBNIgBm/+BxXf+lh8uMxz/s=";
};
# Twisted asynchronous version is not supported due to a missing dependency
@ -43,12 +46,18 @@ buildPythonPackage rec {
asynctest
mock
pytest-asyncio
pytest-rerunfailures
pytest-xdist
pytestCheckHook
redis
sqlalchemy
twisted
];
pytestFlagsArray = [
"--reruns" "3" # Racy socket tests
];
pythonImportsCheck = [ "pymodbus" ];
meta = with lib; {
@ -59,7 +68,8 @@ buildPythonPackage rec {
also be used without any third party dependencies if a more
lightweight project is needed.
'';
homepage = "https://github.com/riptideio/pymodbus";
homepage = "https://github.com/pymodbus-dev/pymodbus";
changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/v${version}";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};

View File

@ -1,22 +1,20 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysensibo";
version = "1.0.24";
version = "1.0.25";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "andrey-git";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-lLorBf4HjynkTyLfKGcxEpSzyCawjKDej/HFtHl/Ar8=";
src = fetchPypi {
inherit pname version;
hash = "sha256-AZpqV/CQ8TLKjaee9b0Zbu6WfnGNenKIvot+TTTSikg=";
};
propagatedBuildInputs = [

View File

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "python-homewizard-energy";
version = "1.3.1";
version = "1.8.0";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "DCSBL";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-rj3WTDj2ey8unOxXkD4zbqwd0FDcyHPzsDrjtX7myj4=";
hash = "sha256-ab+Fa7Dc2mHGy5C5PfoBfXIb/eugCyGrWjTYlJmTQE0=";
};
nativeBuildInputs = [

View File

@ -26,7 +26,7 @@
buildPythonPackage rec {
pname = "python-matter-server";
version = "1.0.8";
version = "2.0.2";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -35,7 +35,7 @@ buildPythonPackage rec {
owner = "home-assistant-libs";
repo = "python-matter-server";
rev = "refs/tags/${version}";
hash = "sha256-7w2Gg70Sl84zs55z6Hg8JPtkY9dNzyb1iBC6O4ulr1M=";
hash = "sha256-9Lb5Q54hPdyqMjrHvwBzVXPk8uKBLNRUl2Bljo64Fpo=";
};
nativeBuildInputs = [

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "reolink-aio";
version = "0.2.2";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.9";
@ -20,25 +20,26 @@ buildPythonPackage rec {
owner = "starkillerOG";
repo = "reolink_aio";
rev = "refs/tags/${version}";
sha256 = "sha256-rHiKwr720aTpkem8urnK9TP5CkHCEOHdeBp00rhlitI=";
hash = "sha256-XFqZ/5eK7cYPNsWNFu8UlJfMe28qSZNFrtozB80ZcNM=";
};
propagatedBuildInputs = [
aiohttp
ffmpeg-python
requests
];
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
postPatch = ''
# Packages in nixpkgs is different than the module name
substituteInPlace setup.py \
--replace "ffmpeg" "ffmpeg-python"
'';
propagatedBuildInputs = [
aiohttp
ffmpeg-python
requests
];
doCheck = false; # all testse require a network device
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
pytestFlagsArray = [
"tests/test.py"
@ -51,7 +52,9 @@ buildPythonPackage rec {
"test3_images"
"test4_properties"
"test_succes"
"test_wrong_host"
"test_wrong_password"
"test_wrong_user"
];
pythonImportsCheck = [

View File

@ -1,33 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, prettytable
, requests
}:
buildPythonPackage rec {
pname = "somecomfort";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "56e60e4e9f76c12c0c9dd1016e9f1334be6800409e0762f5f143f9069d7292d3";
};
propagatedBuildInputs = [
requests
prettytable
];
# tests require network access
doCheck = false;
pythonImportsCheck = [ "somecomfort" ];
meta = with lib; {
description = "Client for Honeywell's US-based cloud devices";
homepage = "https://github.com/kk7ds/somecomfort";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "whirlpool-sixth-sense";
version = "0.18";
version = "0.18.2";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "abmantis";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-XmbRUVivV+jSJUpksMIJ88CwNtOD+Qkwtqyg3dX33ZU=";
hash = "sha256-6vmevL/VDuBnsPeYxtBZkCi9SVuINpM6jVlNR1Y6AuA=";
};
propagatedBuildInputs = [

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "xknx";
version = "2.2.0";
version = "2.3.0";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "XKNX";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-vz24saI0wuhax4/zCBDM3HB+ZjZI8bGOWr2va4V3zV8=";
hash = "sha256-G4az6YmCDv1MPF30mBQVNBPZdebjZqd+0vxo5F5iDWY=";
};
propagatedBuildInputs = [

File diff suppressed because it is too large Load Diff

View File

@ -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"

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 = "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

View File

@ -45,7 +45,7 @@ buildPythonPackage rec {
postInstall = ''
pushd ..
# https://github.com/home-assistant/intents/blob/main/script/package#L18
${python.interpreter} -m script.intentfest merged_output $out/${python.sitePackages}/home-assistant-intents/home_assistant_intents/data
${python.interpreter} -m script.intentfest merged_output $out/${python.sitePackages}/home_assistant_intents/data
popd
'';

View File

@ -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;

View File

@ -147,6 +147,7 @@ mapAliases ({
protonup = protonup-ng; # Added 2022-11-06
pur = throw "pur has been renamed to pkgs.pur"; # added 2021-11-08
pushbullet = pushbullet-py; # Added 2022-10-15
pyalmond = throw "pyalmond has been removed, since its API endpoints have been shutdown"; # added 2023-02-02
pydrive = throw "pydrive is broken and deprecated and has been replaced with pydrive2."; # added 2022-06-01
pyGtkGlade = throw "Glade support for pygtk has been removed"; # added 2022-01-15
pycallgraph = throw "pycallgraph has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
@ -213,6 +214,7 @@ mapAliases ({
sharkiqpy = sharkiq; # added 2022-05-21
smart_open = smart-open; # added 2021-03-14
smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
somecomfort = throw "somecomfort was removed because Home Assistant switched to aiosomecomfort"; # added 2023-02-01
SPARQLWrapper = sparqlwrapper;
sphinx_rtd_theme = sphinx-rtd-theme; # added 2022-08-03
sphinxcontrib_plantuml = sphinxcontrib-plantuml; # added 2021-08-02

View File

@ -308,6 +308,8 @@ self: super: with self; {
aiorun = callPackage ../development/python-modules/aiorun { };
aioruuvigateway = callPackage ../development/python-modules/aioruuvigateway { };
aiorwlock = callPackage ../development/python-modules/aiorwlock { };
aiosenseme = callPackage ../development/python-modules/aiosenseme { };
@ -332,6 +334,8 @@ self: super: with self; {
aiosmtplib = callPackage ../development/python-modules/aiosmtplib { };
aiosomecomfort = callPackage ../development/python-modules/aiosomecomfort { };
aiosqlite = callPackage ../development/python-modules/aiosqlite { };
aiosteamist = callPackage ../development/python-modules/aiosteamist { };
@ -3065,6 +3069,8 @@ self: super: with self; {
espeak-phonemizer = callPackage ../development/python-modules/espeak-phonemizer { };
esphome-dashboard-api = callPackage ../development/python-modules/esphome-dashboard-api { };
esprima = callPackage ../development/python-modules/esprima { };
escapism = callPackage ../development/python-modules/escapism { };
@ -7685,8 +7691,6 @@ self: super: with self; {
pyalgotrade = callPackage ../development/python-modules/pyalgotrade { };
pyalmond = callPackage ../development/python-modules/pyalmond { };
pyamg = callPackage ../development/python-modules/pyamg { };
pyaml = callPackage ../development/python-modules/pyaml { };
@ -10695,8 +10699,6 @@ self: super: with self; {
somajo = callPackage ../development/python-modules/somajo { };
somecomfort = callPackage ../development/python-modules/somecomfort { };
somfy-mylink-synergy = callPackage ../development/python-modules/somfy-mylink-synergy { };
sonarr = callPackage ../development/python-modules/sonarr { };