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