python311Packages.numcodecs: simplify DISABLE_NUMCODECS_AVX2

This commit is contained in:
Doron Behar
2024-10-31 13:53:31 +02:00
parent 550267174f
commit d7fb5d0185
@@ -47,13 +47,9 @@ buildPythonPackage rec {
# zfpy = [ zfpy ];
};
preBuild =
if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then
''
export DISABLE_NUMCODECS_AVX2=
''
else
null;
preBuild = lib.optionalString (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) ''
export DISABLE_NUMCODECS_AVX2=1
'';
nativeCheckInputs = [
pytestCheckHook