Skip to content

Commit

Permalink
python310Packages.onnx: fix script patching
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Apr 24, 2022
1 parent f7861fa commit 7409801
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/onnx/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, bash
, cmake
, fetchPypi
, isPy27
Expand Down Expand Up @@ -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')" ""
'';
Expand Down

0 comments on commit 7409801

Please sign in to comment.