From 6312640e83d7f093d5f41898a600b738127a0747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 21 Mar 2023 14:59:05 +1100 Subject: [PATCH] python310Packages.pygls: fix darwin on hydra The tests need more open sockets than the provided default. --- pkgs/development/python-modules/pygls/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/pygls/default.nix b/pkgs/development/python-modules/pygls/default.nix index 5560e855d87f..7ca6b344c9a2 100644 --- a/pkgs/development/python-modules/pygls/default.nix +++ b/pkgs/development/python-modules/pygls/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , pythonOlder , fetchFromGitHub @@ -45,6 +46,11 @@ buildPythonPackage rec { # Fixes hanging tests on Darwin __darwinAllowLocalNetworking = true; + preCheck = lib.optionalString stdenv.isDarwin '' + # Darwin issue: OSError: [Errno 24] Too many open files + ulimit -n 1024 + ''; + pythonImportsCheck = [ "pygls" ]; meta = with lib; {