1{
2 stdenv,
3 buildPythonPackage,
4 a2wsgi,
5 uvicorn,
6 httpx,
7 pytestCheckHook,
8 pytest-mock,
9 trustme,
10 watchgod,
11 wsproto,
12}:
13
14buildPythonPackage {
15 pname = "uvicorn-tests";
16 inherit (uvicorn) version;
17 format = "other";
18
19 src = uvicorn.testsout;
20
21 dontBuild = true;
22 dontInstall = true;
23
24 nativeCheckInputs = [
25 uvicorn
26 httpx
27 pytestCheckHook
28 pytest-mock
29 trustme
30
31 # strictly optional dependencies
32 a2wsgi
33 watchgod
34 wsproto
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}