From 20c723dd070792a0e6b56df0e7b173975867ddb3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 11 Feb 2023 23:22:09 +0100 Subject: [PATCH] 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. --- pkgs/development/interpreters/python/tests.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/tests.nix b/pkgs/development/interpreters/python/tests.nix index 037c8f87b8ba..6282b0f6690e 100644 --- a/pkgs/development/interpreters/python/tests.nix +++ b/pkgs/development/interpreters/python/tests.nix @@ -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