diff --git a/pkgs/development/interpreters/python/tests.nix b/pkgs/development/interpreters/python/tests.nix index e2dc7a69fbc6..f0cd64d23e66 100644 --- a/pkgs/development/interpreters/python/tests.nix +++ b/pkgs/development/interpreters/python/tests.nix @@ -237,7 +237,8 @@ let } ); - condaTests = + # depends on mypy, which depends on CPython internals + condaTests = lib.optionalAttrs (!python.isPyPy) ( let requests = callPackage ( { @@ -276,7 +277,8 @@ let condaExamplePackage = runCommand "import-requests" { } '' ${pythonWithRequests.interpreter} -c "import requests" > $out ''; - }; + } + ); in lib.optionalAttrs (stdenv.hostPlatform == stdenv.buildPlatform) (