mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
50 lines
713 B
Nix
50 lines
713 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, asgiref
|
|
, uvicorn
|
|
, httpx
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytest-mock
|
|
, requests
|
|
, trustme
|
|
, watchgod
|
|
, wsproto
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "uvicorn-tests";
|
|
inherit (uvicorn) version;
|
|
|
|
src = uvicorn.testsout;
|
|
|
|
dontBuild = true;
|
|
dontInstall = true;
|
|
|
|
checkInputs = [
|
|
asgiref
|
|
uvicorn
|
|
httpx
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-mock
|
|
requests
|
|
trustme
|
|
|
|
# strictly optional dependencies
|
|
watchgod
|
|
wsproto
|
|
]
|
|
++ uvicorn.optional-dependencies.standard;
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
disabledTests = [
|
|
"test_supported_upgrade_request"
|
|
"test_invalid_upgrade"
|
|
];
|
|
}
|
|
|