python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / uvicorn / tests.nix
blobb5d7cee2f7c5e560cce55fbe1a7476a73ac7f19b
2   stdenv,
3   buildPythonPackage,
4   a2wsgi,
5   uvicorn,
6   httpx,
7   pytestCheckHook,
8   pytest-mock,
9   trustme,
10   watchgod,
11   wsproto,
14 buildPythonPackage {
15   pname = "uvicorn-tests";
16   inherit (uvicorn) version;
17   format = "other";
19   src = uvicorn.testsout;
21   dontBuild = true;
22   dontInstall = true;
24   nativeCheckInputs = [
25     uvicorn
26     httpx
27     pytestCheckHook
28     pytest-mock
29     trustme
31     # strictly optional dependencies
32     a2wsgi
33     watchgod
34     wsproto
35   ] ++ uvicorn.optional-dependencies.standard;
37   doCheck = !stdenv.hostPlatform.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   ];