From b2b2282f5d41da0db87d5bcf87aa95b9727260e9 Mon Sep 17 00:00:00 2001 From: Artturin Date: Mon, 16 May 2022 04:55:39 +0300 Subject: [PATCH] python39Packages.sanic: fix build on darwin OSError: [Errno 24] Too many open files https://hydra.nixos.org/build/176212923 --- pkgs/development/python-modules/sanic/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index 228bf2a5624..ff76e2c5631 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -82,6 +82,9 @@ buildPythonPackage rec { # needed for relative paths for some packages cd tests + '' + lib.optionalString stdenv.isDarwin '' + # OSError: [Errno 24] Too many open files + ulimit -n 1024 ''; # uvloop usage is buggy