From dba8615383cdf8680dc91dc273c8e9b72b1681b3 Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 10 May 2025 21:31:48 -0400 Subject: [PATCH] python3Packages.hydrogram: don't use async in tests --- pkgs/development/python-modules/hydrogram/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/hydrogram/default.nix b/pkgs/development/python-modules/hydrogram/default.nix index cb68f754c9d9..d0430d7e06a6 100644 --- a/pkgs/development/python-modules/hydrogram/default.nix +++ b/pkgs/development/python-modules/hydrogram/default.nix @@ -3,6 +3,7 @@ aiosqlite, buildPythonPackage, fetchFromGitHub, + fetchpatch2, hatchling, pyaes, pysocks, @@ -25,6 +26,15 @@ buildPythonPackage rec { hash = "sha256-QpweUDCypTxOOWL08gCUuMgbuE4130iNyxRpUNuSBac="; }; + patches = [ + (fetchpatch2 { + name = "fix-async-in-test.patch"; + excludes = [ ".github/workflows/code-style.yml" ]; + url = "https://github.com/hydrogram/hydrogram/commit/7431319a1d990aa838012bd566a9746da7df2a6e.patch"; + hash = "sha256-MPv13cxnNPDD+p9EPjDPFqydGy57oXzLeRxL3lG8JKU="; + }) + ]; + build-system = [ hatchling ]; dependencies = [