Skip to content

Commit

Permalink
home-assistant: 2024.12.5 -> 2025.1.0 (#370625)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Jan 5, 2025
2 parents 1ce00b1 + 2b46b6e commit 2810388
Show file tree
Hide file tree
Showing 58 changed files with 415 additions and 419 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aioacaia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

buildPythonPackage rec {
pname = "aioacaia";
version = "0.1.12";
version = "0.1.13";
pyproject = true;

disabled = pythonOlder "3.12";
Expand All @@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "zweckj";
repo = "aioacaia";
tag = "v${version}";
hash = "sha256-XtHze2EYLSGm3u8aG6vbogqki83k1mBKy/bC8gCCoWQ=";
hash = "sha256-c+xtVUSyH9dBz97eI+8YYG/yW08kZFLNXnHudxYchCE=";
};

build-system = [ setuptools ];
Expand Down
11 changes: 7 additions & 4 deletions pkgs/development/python-modules/aioautomower/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
freezegun,
Expand All @@ -18,7 +19,7 @@

buildPythonPackage rec {
pname = "aioautomower";
version = "2024.10.3";
version = "2024.12.0";
pyproject = true;

disabled = pythonOlder "3.11";
Expand All @@ -27,7 +28,7 @@ buildPythonPackage rec {
owner = "Thomas55555";
repo = "aioautomower";
tag = version;
hash = "sha256-kLsHJBmNxh+PmJQ9Y9Ve/CACovzsRZyzVjor/VKUmYk=";
hash = "sha256-JLlmvd6Hgf1a3YU9xfbw8plEbRDNgCzxF3PpveGsrPg=";
};

postPatch = ''
Expand All @@ -47,6 +48,7 @@ buildPythonPackage rec {
];

nativeCheckInputs = [
aioresponses
freezegun
pytest-asyncio
pytest-cov-stub
Expand All @@ -56,13 +58,14 @@ buildPythonPackage rec {

pythonImportsCheck = [ "aioautomower" ];

pytestFlagsArray = [ "--snapshot-update" ];

disabledTests = [
# File is missing
"test_standard_mower"
# Call no found
"test_post_commands"
# Timezone mismatches
"test_full_planner_event"
"test_sinlge_planner_event"
];

meta = with lib; {
Expand Down
14 changes: 10 additions & 4 deletions pkgs/development/python-modules/aiocache/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
redis,
setuptools,
Expand Down Expand Up @@ -54,10 +55,15 @@ buildPythonPackage rec {
"--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close"
];

disabledTests = [
# Test calls apache benchmark and fails, no usable output
"test_concurrency_error_rates"
];
disabledTests =
[
# Test calls apache benchmark and fails, no usable output
"test_concurrency_error_rates"
]
++ lib.optionals (pythonAtLeast "3.13") [
# https://github.com/aio-libs/aiocache/issues/863
"test_cache_write_doesnt_wait_for_future"
];

disabledTestPaths = [
# Benchmark and performance tests are not relevant for Nixpkgs
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aiohasupervisor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

buildPythonPackage rec {
pname = "aiohasupervisor";
version = "0.2.1";
version = "0.2.2b5";
pyproject = true;

disabled = pythonOlder "3.12";

src = fetchPypi {
inherit pname version;
hash = "sha256-oSQhZf0lV5bJYdrfu4j8Hw1F+EQfivEPQomatHixy9k=";
hash = "sha256-EFVhR7L+1SVzXO4UpDrXA1EuPdeew55CV4ykO3K5BFI=";
};

postPatch = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aioshelly/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

buildPythonPackage rec {
pname = "aioshelly";
version = "12.1.0";
version = "12.2.0";
pyproject = true;

disabled = pythonOlder "3.11";
Expand All @@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "home-assistant-libs";
repo = "aioshelly";
tag = version;
hash = "sha256-QcVyWabELa1bB2MOwQNPItXLgeOXlFpRh69dS+m1FLI=";
hash = "sha256-Y6gFFo0kzdHGaRqNVHhr0vvWBwRO2kOaoR4BFUbyYUQ=";
};

build-system = [ setuptools ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aioswitcher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

buildPythonPackage rec {
pname = "aioswitcher";
version = "5.0.0";
version = "6.0.0";
pyproject = true;

disabled = pythonOlder "3.9";
Expand All @@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "TomerFi";
repo = "aioswitcher";
tag = version;
hash = "sha256-cKHH1yXVm/kZigO1Ub0XZEv+yq4lROc4SGFLqFuwQto=";
hash = "sha256-nf4PEitfM9uYOlmm/cfILnFo/xx8g7rjYn2nkf3gjMg=";
};

__darwinAllowLocalNetworking = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/bellows/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

buildPythonPackage rec {
pname = "bellows";
version = "0.42.5";
version = "0.42.6";
pyproject = true;

disabled = pythonOlder "3.8";
Expand All @@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "bellows";
tag = version;
hash = "sha256-RdNJmIhJR4Ubb4hppFkde8EeYHtFSoJp3CJPGj0463U=";
hash = "sha256-qMODlsImGSvUkR+0jjrU23jJtM3c7JNJ7lY7Svli+ao=";
};

postPatch = ''
Expand Down
16 changes: 11 additions & 5 deletions pkgs/development/python-modules/datadog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
pytest-vcr,
pytestCheckHook,
python-dateutil,
pythonAtLeast,
pythonOlder,
requests,
vcrpy,
Expand Down Expand Up @@ -48,11 +49,16 @@ buildPythonPackage rec {
"tests/integration/api/test_*.py"
];

disabledTests = [
"test_default_settings_set"
# https://github.com/DataDog/datadogpy/issues/746
"TestDogshell"
];
disabledTests =
[
"test_default_settings_set"
# https://github.com/DataDog/datadogpy/issues/746
"TestDogshell"
]
++ lib.optionals (pythonAtLeast "3.13") [
# https://github.com/DataDog/datadogpy/issues/880
"test_timed_coroutine"
];

pythonImportsCheck = [ "datadog" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/deebot-client/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

buildPythonPackage rec {
pname = "deebot-client";
version = "9.4.0";
version = "10.1.0";
pyproject = true;

disabled = pythonOlder "3.12";
Expand All @@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "DeebotUniverse";
repo = "client.py";
tag = version;
hash = "sha256-hJGE9D0rsYKrd4XZIrOOnwaQlq75Qy4S8681wjr4VDs=";
hash = "sha256-qnXDr8+e13/VMFhFBbQJPdct5MjHwcBkLl+fo8xaEgY=";
};

pythonRelaxDeps = [
Expand Down
35 changes: 12 additions & 23 deletions pkgs/development/python-modules/demetriek/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,66 +6,55 @@
backoff,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
mashumaro,
orjson,
poetry-core,
pydantic,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
yarl,
}:

buildPythonPackage rec {
pname = "demetriek";
version = "0.4.0";
version = "1.1.0";
pyproject = true;

disabled = pythonOlder "3.9";
disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "frenck";
repo = "python-demetriek";
tag = "v${version}";
hash = "sha256-LCHHBcZgO9gw5jyaJiiS4lKyb0ut+PJvKTylIvIKHhc=";
hash = "sha256-MDGAhsLbJqvywQntlPfM/cPyltqsqnt2C31ACpMPn0Y=";
};

patches = [
# https://github.com/frenck/python-demetriek/pull/531
(fetchpatch {
name = "pydantic_2-compatibility.patch";
url = "https://github.com/frenck/python-demetriek/commit/e677fe5b735b6b28572e3e5fd6aab56fc056f5e6.patch";
excludes = [
"pyproject.toml"
"poetry.lock"
];
hash = "sha256-oMVR45KHDhcPId/0X9obJXCPE8s1gk5IgsGsgZesdZw=";
})
];

postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
--replace-fail "0.0.0" "${version}"
'';

pythonRelaxDeps = [ "pydantic" ];

nativeBuildInputs = [
build-system = [
poetry-core
];

propagatedBuildInputs = [
dependencies = [
aiohttp
awesomeversion
backoff
pydantic
mashumaro
orjson
yarl
];

nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/elmax-api/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

buildPythonPackage rec {
pname = "elmax-api";
version = "0.0.6.3";
version = "0.0.6.4rc0";
pyproject = true;

disabled = pythonOlder "3.8";
Expand All @@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "albertogeniola";
repo = pname;
tag = "v${version}";
hash = "sha256-jnm1AFnPxZIgD815ZFxV/i9ar4cZfsYJ0+xDpM3hKmg=";
hash = "sha256-BYVfP8B+p4J4gW+64xh9bT9sDcu/lk0R+MvLsYLwRfQ=";
};

build-system = [ setuptools ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/emoji/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

buildPythonPackage rec {
pname = "emoji";
version = "2.13.2";
version = "2.14.0";
pyproject = true;

disabled = pythonOlder "3.7";
Expand All @@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "carpedm20";
repo = "emoji";
tag = "v${version}";
hash = "sha256-1oFzuIA2HFoBw50HHYi8bGZTAAeC6fesSnLReuXUZcM=";
hash = "sha256-ubZrVw069UiUvtEk9iff5lByGXyNalsKPv3Mj2X3qxc=";
};

build-system = [ setuptools ];
Expand Down
15 changes: 2 additions & 13 deletions pkgs/development/python-modules/flux-led/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

buildPythonPackage rec {
pname = "flux-led";
version = "1.0.4";
version = "1.1.0";
pyproject = true;

disabled = pythonOlder "3.8";
Expand All @@ -20,18 +20,12 @@ buildPythonPackage rec {
owner = "Danielhiversen";
repo = "flux_led";
tag = version;
hash = "sha256-enYo2hZ1C8jqO+8xZhSmIOJQAyrtVUJ9S/e2Bxzhv0I=";
hash = "sha256-7gWqlb2PNRI50Xe8lv2Kim7wUYVzuQMa4BAbg2a7NvM=";
};

postPatch = ''
substituteInPlace setup.py \
--replace-fail '"pytest-runner>=5.2",' ""
# webcolors API change, https://github.com/Danielhiversen/flux_led/issues/401
substituteInPlace flux_led/utils.py \
--replace-fail "CSS2_HEX_TO_NAMES.values()" 'names("css2")' \
--replace-fail "CSS21_HEX_TO_NAMES.values()" 'names("css21")' \
--replace-fail "CSS3_HEX_TO_NAMES.values()" 'names("css3")' \
--replace-fail "HTML4_HEX_TO_NAMES.values()" 'names("html4")'
'';

build-system = [ setuptools ];
Expand All @@ -47,11 +41,6 @@ buildPythonPackage rec {

pythonImportsCheck = [ "flux_led" ];

# disabledTests = [
# # AttributeError: module 'webcolors' has no attribute 'CSS2_HEX_TO_NAMES'
# "test_get_color_names_list"
# ];

meta = with lib; {
description = "Python library to communicate with the flux_led smart bulbs";
homepage = "https://github.com/Danielhiversen/flux_led";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/guppy3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

buildPythonPackage rec {
pname = "guppy3";
version = "3.1.4.post1";
version = "3.1.5";
pyproject = true;

disabled = pythonOlder "3.8";
Expand All @@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "zhuyifei1999";
repo = pname;
tag = "v${version}";
hash = "sha256-HHy57P6WEHZKygAbdjEh6XAApFlQueiYGr02eSQMWfc=";
hash = "sha256-hgJcy4DRfZL50dCcRv2a6GJPDabsUMfDtq7HCXXYYz8=";
};

nativeBuildInputs = [ setuptools ];
Expand Down
Loading

0 comments on commit 2810388

Please sign in to comment.