python310Packages.onnx: fix script patching

This commit is contained in:
Sandro Jäckel 2022-04-22 04:50:47 +02:00
parent f7861fa5e0
commit 7409801908
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -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')" ""
'';