From 613533d8c563493a0378049cbd654167a7190f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 13 Nov 2025 22:12:05 -0800 Subject: [PATCH] python3Packages.ring-doorbell: replace async-timeout with asyncio.timeout --- .../python-modules/ring-doorbell/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ring-doorbell/default.nix b/pkgs/development/python-modules/ring-doorbell/default.nix index c67eab7d78d6..67d8e7622519 100644 --- a/pkgs/development/python-modules/ring-doorbell/default.nix +++ b/pkgs/development/python-modules/ring-doorbell/default.nix @@ -5,6 +5,7 @@ aioresponses, asyncclick, buildPythonPackage, + fetchpatch, fetchPypi, firebase-messaging, freezegun, @@ -15,7 +16,6 @@ pytest-mock, pytest-socket, pytestCheckHook, - pythonOlder, pytz, typing-extensions, websockets, @@ -26,14 +26,25 @@ buildPythonPackage rec { version = "0.9.13"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchPypi { pname = "ring_doorbell"; inherit version; hash = "sha256-M8lHODHdWXLvrDbQMeEgGaQMYCXicHTQta+XjJxSQlM="; }; + patches = [ + # https://github.com/python-ring-doorbell/python-ring-doorbell/pull/494 + (fetchpatch { + name = "replace-async-timeout-with-asyncio.timeout.patch"; + url = "https://github.com/python-ring-doorbell/python-ring-doorbell/commit/771243153921ec2cfb5f103b08ed08cccbe2e760.patch"; + excludes = [ + ".github/workflows/ci.yml" + "uv.lock" + ]; + hash = "sha256-l6CUg3J6FZ0c0v0SSqvndjl4XeBhGFy/uWHPkExCM50="; + }) + ]; + pythonRelaxDeps = [ "requests-oauthlib" ]; build-system = [ hatchling ];