From b866b626cce208ce9c57ba6bad381e61bb78feb6 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 25 Dec 2023 10:24:37 +0300 Subject: [PATCH] python311Packages.aiohttp-zlib-ng: only depend on cpufeature where available --- pkgs/development/python-modules/aiohttp-zlib-ng/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix b/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix index 65e996535a6f..b912224b0037 100644 --- a/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix +++ b/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , aiohttp , buildPythonPackage , cpufeature @@ -34,9 +35,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ aiohttp - cpufeature zlib-ng - ]; + ] ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform cpufeature) cpufeature; nativeCheckInputs = [ pytestCheckHook