Diff: https://github.com/encode/uvicorn/compare/refs/tags/0.32.0...0.32.1 Changelog: https://github.com/encode/uvicorn/blob/refs/tags/0.32.1/CHANGELOG.md
50 lines
801 B
Nix
50 lines
801 B
Nix
{
|
|
stdenv,
|
|
buildPythonPackage,
|
|
a2wsgi,
|
|
uvicorn,
|
|
httpx,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
trustme,
|
|
typing-extensions,
|
|
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
|
|
typing-extensions
|
|
|
|
# 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"
|
|
];
|
|
}
|