python310Packages.onnx: fix script patching
This commit is contained in:
parent
f7861fa5e0
commit
7409801908
|
@ -1,5 +1,6 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, bash
|
||||
, cmake
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
|
@ -43,8 +44,9 @@ buildPythonPackage rec {
|
|||
|
||||
postPatch = ''
|
||||
chmod +x tools/protoc-gen-mypy.sh.in
|
||||
patchShebangs tools/protoc-gen-mypy.sh.in tools/protoc-gen-mypy.py
|
||||
|
||||
patchShebangs tools/protoc-gen-mypy.py
|
||||
substituteInPlace tools/protoc-gen-mypy.sh.in \
|
||||
--replace "/bin/bash" "${bash}/bin/bash"
|
||||
substituteInPlace setup.py \
|
||||
--replace "setup_requires.append('pytest-runner')" ""
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue