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 src = uvicorn.testsout;
20
21 dontBuild = true;
22 dontInstall = true;
23
24 checkInputs = [
25 asgiref
26 uvicorn
27 httpx
28 pytestCheckHook
29 pytest-asyncio
30 pytest-mock
31 requests
32 trustme
33
34 # strictly optional dependencies
35 watchgod
36 wsproto
37 ]
38 ++ uvicorn.optional-dependencies.standard;
39
40 doCheck = !stdenv.isDarwin;
41
42 __darwinAllowLocalNetworking = true;
43
44 disabledTests = [
45 "test_supported_upgrade_request"
46 "test_invalid_upgrade"
47 ];
48}
49