about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/uvicorn/tests.nix
blob: 2fc0e932b8e9491cc08c4cce6b932b29be0482a0 (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
{ stdenv
, buildPythonPackage
, uvicorn
, httpx
, pytest-asyncio
, pytestCheckHook
, pytest-mock
, requests
, trustme
}:

buildPythonPackage rec {
  pname = "uvicorn-tests";
  inherit (uvicorn) version;

  src = uvicorn.testsout;

  dontBuild = true;
  dontInstall = true;

  checkInputs = [
    uvicorn
    httpx
    pytestCheckHook
    pytest-asyncio
    pytest-mock
    requests
    trustme
  ];

  doCheck = !stdenv.isDarwin;

  __darwinAllowLocalNetworking = true;

  disabledTests = [
    "test_supported_upgrade_request"
    "test_invalid_upgrade"
  ];
}