From d210d8337c2256ad453d5e84f156a2ca1ebe9693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 8 Jan 2026 05:42:32 -0800 Subject: [PATCH] python3Packages.starlette-compress: only use brotlicffi with PyPy --- .../development/python-modules/starlette-compress/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/starlette-compress/default.nix b/pkgs/development/python-modules/starlette-compress/default.nix index 35c5b0756b4d..5a2badcf6781 100644 --- a/pkgs/development/python-modules/starlette-compress/default.nix +++ b/pkgs/development/python-modules/starlette-compress/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchFromGitHub, hatchling, + isPyPy, brotli, brotlicffi, starlette, @@ -27,8 +28,7 @@ buildPythonPackage rec { build-system = [ hatchling ]; dependencies = [ - brotli - brotlicffi + (if isPyPy then brotlicffi else brotli) starlette zstandard ];