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