Merge pull request #105448 from SuperSandro2000/uvicorn-darwin

pythonPackages.uvicorn: Disable hanging tests on Darwin
This commit is contained in:
Sandro 2020-12-04 03:06:23 +01:00 committed by GitHub
commit 4b634e76f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ lib { stdenv
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, click , click
@ -40,12 +40,15 @@ buildPythonPackage rec {
''; '';
checkInputs = [ pytest requests ]; checkInputs = [ pytest requests ];
doCheck = !stdenv.isDarwin;
# watchgod required the watchgod package, which isn't available in nixpkgs # watchgod required the watchgod package, which isn't available in nixpkgs
checkPhase = '' checkPhase = ''
pytest --ignore=tests/supervisors/test_watchgodreload.py pytest --ignore=tests/supervisors/test_watchgodreload.py
''; '';
meta = with lib; { meta = with stdenv.lib; {
homepage = "https://www.uvicorn.org/"; homepage = "https://www.uvicorn.org/";
description = "The lightning-fast ASGI server"; description = "The lightning-fast ASGI server";
license = licenses.bsd3; license = licenses.bsd3;