From 5aa30a84f6bd6318a60ac4c1f82b4f836b7c9f30 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Wed, 8 Apr 2026 19:11:24 +0200 Subject: [PATCH 1/2] python3Packages.reactivex: support python 3.14 Upstream PR: https://github.com/ReactiveX/RxPY/pull/728 --- .../python-modules/reactivex/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/reactivex/default.nix b/pkgs/development/python-modules/reactivex/default.nix index af91ed442274..84cb4db4283a 100644 --- a/pkgs/development/python-modules/reactivex/default.nix +++ b/pkgs/development/python-modules/reactivex/default.nix @@ -2,10 +2,10 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, poetry-core, pytest-asyncio, pytestCheckHook, - pythonAtLeast, typing-extensions, }: @@ -14,9 +14,6 @@ buildPythonPackage rec { version = "4.1.0"; pyproject = true; - # https://github.com/ReactiveX/RxPY/issues/737 - disabled = pythonAtLeast "3.14"; - src = fetchFromGitHub { owner = "ReactiveX"; repo = "RxPY"; @@ -24,6 +21,15 @@ buildPythonPackage rec { hash = "sha256-napPfp72gqy43UmkPu1/erhjmJbZypHZQikmjIFVBqA="; }; + patches = [ + # Upstream PR: https://github.com/ReactiveX/RxPY/pull/728 + (fetchpatch { + name = "python-3.14.patch"; + url = "https://github.com/ReactiveX/RxPY/commit/78f4a594ca2b0e27ad93ec0e1b1c0d56d5d6540d.patch"; + hash = "sha256-1GQm/4BTd5ZnIqfEUSb0Ja3w0y1R9EoFpzwua7gpIzo="; + }) + ]; + build-system = [ poetry-core ]; dependencies = [ typing-extensions ]; From b7d8afc9065caa234cb10d67aa550c3e147f9d74 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Wed, 8 Apr 2026 22:45:21 +0200 Subject: [PATCH 2/2] tests.home-assistant-component-tests.influxdb: disable failing tests These tests fail because they check for the number of warnings in the logs and there is an extra warning in the logs. --- pkgs/servers/home-assistant/tests.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix index db2118b87ef1..aad0d44fd0d6 100644 --- a/pkgs/servers/home-assistant/tests.nix +++ b/pkgs/servers/home-assistant/tests.nix @@ -172,6 +172,13 @@ let # outdated snapshot "tests/components/hypontech/test_sensor.py::test_sensors" ]; + influxdb = [ + # These tests fail because they check for the number of warnings in the + # logs and there is an extra warning in the logs: + # `WARNING:aiohttp_fast_zlib:zlib_ng and isal are not available, falling back to zlib, performance will be degraded.` + "tests/components/influxdb/test_sensor.py::test_state_for_no_results" + "tests/components/influxdb/test_sensor.py::test_state_matches_first_query_result_for_multiple_return" + ]; jellyfin = [ # AssertionError: assert 'audio/x-flac' == 'audio/flac' "tests/components/jellyfin/test_media_source.py::test_resolve"