python311Packages.aiohttp-zlib-ng: only depend on cpufeature where available

This commit is contained in:
K900
2023-12-25 10:26:50 +03:00
parent 2cd1a5ef3b
commit b866b626cc
@@ -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