1{ stdenv 2, buildPythonPackage 3, a2wsgi 4, uvicorn 5, httpx 6, pytestCheckHook 7, pytest-mock 8, trustme 9, watchgod 10, wsproto 11}: 12 13buildPythonPackage { 14 pname = "uvicorn-tests"; 15 inherit (uvicorn) version; 16 format = "other"; 17 18 src = uvicorn.testsout; 19 20 dontBuild = true; 21 dontInstall = true; 22 23 nativeCheckInputs = [ 24 uvicorn 25 httpx 26 pytestCheckHook 27 pytest-mock 28 trustme 29 30 # strictly optional dependencies 31 a2wsgi 32 watchgod 33 wsproto 34 ] 35 ++ uvicorn.optional-dependencies.standard; 36 37 doCheck = !stdenv.isDarwin; 38 39 __darwinAllowLocalNetworking = true; 40 41 disabledTests = [ 42 "test_supported_upgrade_request" 43 "test_invalid_upgrade" 44 "test_no_server_headers" 45 "test_multiple_server_header" 46 ]; 47} 48