uvloop: fix darwin build

This commit is contained in:
Fabian Möller
2019-09-13 23:11:56 +02:00
parent a4bea6db8b
commit 69ee17f060
2 changed files with 33 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ buildPythonPackage rec {
sha256 = "0blcnrd5vky2k1m1p1skx4516dr1jx76yyb0c6fi82si6mqd0b4l";
};
patches = lib.optional stdenv.isDarwin ./darwin_sandbox.patch;
buildInputs = [
libuv
] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
@@ -31,6 +33,9 @@ buildPythonPackage rec {
checkInputs = [ pyopenssl psutil ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Fast implementation of asyncio event loop on top of libuv";
homepage = http://github.com/MagicStack/uvloop;