Merge pull request #281232 from pbsds/fix-gradio-1705359646

python3Packages.gradio: raise ulimit on darwin
This commit is contained in:
a-n-n-a-l-e-e 2024-01-17 20:21:44 -08:00 committed by GitHub
commit 4b7c480779
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
@ -140,6 +141,9 @@ buildPythonPackage rec {
preCheck = '' preCheck = ''
export HOME=$TMPDIR export HOME=$TMPDIR
cat ${./conftest-skip-network-errors.py} >> test/conftest.py cat ${./conftest-skip-network-errors.py} >> test/conftest.py
'' + lib.optionalString stdenv.isDarwin ''
# OSError: [Errno 24] Too many open files
ulimit -n 4096
''; '';
disabledTests = [ disabledTests = [