python312Packages.betterproto: increase file descriptor limit

This commit is contained in:
annalee 2024-05-08 12:53:43 +00:00
parent 4a451cb3ce
commit 5c0b2dc2e9
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ buildPythonPackage rec {
# The tests require the generation of code before execution. This requires
# the protoc-gen-python_betterproto script from the package to be on PATH.
preCheck = ''
(($(ulimit -n) < 1024)) && ulimit -n 1024
export PATH=$PATH:$out/bin
patchShebangs src/betterproto/plugin/main.py
${python.interpreter} -m tests.generate