Merge pull request #222291 from viraptor/pygls-fix-darwin

python310Packages.pygls: fix darwin on hydra
This commit is contained in:
Stanisław Pitucha 2023-03-21 23:37:19 +11:00 committed by GitHub
commit 9cc171df46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; {