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 1/2] 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 ]; From 5487d6059bc3be2a8b677d9ae6538e51ca377238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 9 Jan 2026 02:48:39 -0800 Subject: [PATCH 2/2] python3Packages.starlette-compress: only use zstandard for Python < 3.14 --- pkgs/development/python-modules/starlette-compress/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/starlette-compress/default.nix b/pkgs/development/python-modules/starlette-compress/default.nix index 5a2badcf6781..14a08def9cb2 100644 --- a/pkgs/development/python-modules/starlette-compress/default.nix +++ b/pkgs/development/python-modules/starlette-compress/default.nix @@ -7,6 +7,7 @@ brotli, brotlicffi, starlette, + pythonOlder, zstandard, pytestCheckHook, httpx, @@ -30,6 +31,8 @@ buildPythonPackage rec { dependencies = [ (if isPyPy then brotlicffi else brotli) starlette + ] + ++ lib.optionals (pythonOlder "3.14") [ zstandard ];