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

View file

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