7 (py.mlflow.overridePythonAttrs(old: rec {
9 propagatedBuildInputs = old.propagatedBuildInputs ++ [
14 postPatch = (old.postPatch or "") + ''
15 substituteInPlace mlflow/utils/process.py --replace \
16 "child = subprocess.Popen(cmd, env=cmd_env, cwd=cwd, universal_newlines=True," \
17 "cmd[0]='$out/bin/gunicornMlflow'; child = subprocess.Popen(cmd, env=cmd_env, cwd=cwd, universal_newlines=True,"
20 gunicornScript = writeText "gunicornMlflow"
25 from gunicorn.app.wsgiapp import run
26 if __name__ == '__main__':
27 sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', ''', sys.argv[0])
32 gpath=$out/bin/gunicornMlflow
33 cp ${gunicornScript} $gpath