python3Packages.starlette-compress: only use brotlicffi with PyPy (#478067)

This commit is contained in:
dotlambda
2026-01-13 08:38:32 +00:00
committed by GitHub
@@ -3,9 +3,11 @@
buildPythonPackage,
fetchFromGitHub,
hatchling,
isPyPy,
brotli,
brotlicffi,
starlette,
pythonOlder,
zstandard,
pytestCheckHook,
httpx,
@@ -27,9 +29,10 @@ buildPythonPackage rec {
build-system = [ hatchling ];
dependencies = [
brotli
brotlicffi
(if isPyPy then brotlicffi else brotli)
starlette
]
++ lib.optionals (pythonOlder "3.14") [
zstandard
];