Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / uvicorn / tests.nix
blob805e8df1c710ccf2c728131acab303afc07dff9a
1 { stdenv
2 , buildPythonPackage
3 , a2wsgi
4 , uvicorn
5 , httpx
6 , pytestCheckHook
7 , pytest-mock
8 , trustme
9 , watchgod
10 , wsproto
13 buildPythonPackage {
14   pname = "uvicorn-tests";
15   inherit (uvicorn) version;
16   format = "other";
18   src = uvicorn.testsout;
20   dontBuild = true;
21   dontInstall = true;
23   nativeCheckInputs = [
24     uvicorn
25     httpx
26     pytestCheckHook
27     pytest-mock
28     trustme
30     # strictly optional dependencies
31     a2wsgi
32     watchgod
33     wsproto
34   ]
35   ++ uvicorn.optional-dependencies.standard;
37   doCheck = !stdenv.isDarwin;
39   __darwinAllowLocalNetworking = true;
41   disabledTests = [
42     "test_supported_upgrade_request"
43     "test_invalid_upgrade"
44     "test_no_server_headers"
45     "test_multiple_server_header"
46   ];