diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/uvicorn/tests.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/uvicorn/tests.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/uvicorn/tests.nix b/nixpkgs/pkgs/development/python-modules/uvicorn/tests.nix new file mode 100644 index 000000000000..2fc0e932b8e9 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/uvicorn/tests.nix @@ -0,0 +1,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" + ]; +} + |