anchor.diff:  , libuv
   , CoreServices
   , ApplicationServices
  -# Check Inputs
  +  # Check Inputs
   , aiohttp
   , psutil
   , pyopenssl
  
positive.code:     "--assert=plain"
      "--strict"
      "--tb=native"
    ] ++ lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) [
      # test gets stuck in epoll_pwait on hydras aarch64 builders
      # https://github.com/MagicStack/uvloop/issues/412
      "--deselect" "tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data"
    ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
      # Flaky test: https://github.com/MagicStack/uvloop/issues/412
      "--deselect" "tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_timeout_handler_not_set"
      # Broken: https://github.com/NixOS/nixpkgs/issues/160904
      "--deselect" "tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost"
    ];
  
    disabledTestPaths = [
  
negative.code:     # Work around "OSError: AF_UNIX path too long"
      # https://github.com/MagicStack/uvloop/issues/463
      export TMPDIR="/tmp"
      # pyopenssl is not well supported by upstream
      # https://github.com/NixOS/nixpkgs/issues/175875
      substituteInPlace tests/test_tcp.py \
        --replace "from OpenSSL import SSL as openssl_ssl" ""
    '' + ''
      # force using installed/compiled uvloop vs source by moving tests to temp dir
      export TEST_DIR=$(mktemp -d)
      cp -r tests $TEST_DIR
  