From 5bc0d4dc82d45304b2ba7a80fcd0de90b3743e47 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 15 Mar 2025 14:50:57 +0800 Subject: [PATCH] python313Packages.baize: fix build --- pkgs/development/python-modules/baize/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/baize/default.nix b/pkgs/development/python-modules/baize/default.nix index f26314e74440..9b55c4b15fe5 100644 --- a/pkgs/development/python-modules/baize/default.nix +++ b/pkgs/development/python-modules/baize/default.nix @@ -8,6 +8,7 @@ pytestCheckHook, setuptools, starlette, + fetchpatch, }: buildPythonPackage rec { @@ -22,6 +23,16 @@ buildPythonPackage rec { hash = "sha256-vsYt1q8QEDmEXjd8dlzHr85Fz3YAjPowS+oBWYGbG1o="; }; + patches = [ + # Fix tests failing with httpx>=0.28 + # https://github.com/abersheeran/baize/pull/74 + # FIXME: Remove in next release + (fetchpatch { + url = "https://github.com/abersheeran/baize/commit/40dc83bc03b4e5acd5155917be3a481e6494530e.patch"; + hash = "sha256-z4jb4iwo51WIPAAECiM4kPThpHcrzy3349gm/orgoq8="; + }) + ]; + build-system = [ pdm-pep517 setuptools