python3.tests.condaExamplePackage: Exclude on non-linux

Allow python3.tests to eval on other platforms than linux, by excluding
conda tests when not on linux, because they include alsa-lib, which is
linux-only.
This commit is contained in:
Martin Weinelt
2023-02-11 23:22:09 +01:00
parent ee90eca180
commit 20c723dd07
@@ -173,7 +173,7 @@ let
}
) {};
pythonWithRequests = requests.pythonModule.withPackages (ps: [ requests ]);
in
in lib.optionalAttrs stdenv.isLinux
{
condaExamplePackage = runCommand "import-requests" {} ''
${pythonWithRequests.interpreter} -c "import requests" > $out